Skip to content

Commit

Permalink
Merge branch 'master' into enhancement-2220-cache-friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Mar 16, 2012
2 parents d867a23 + cf38d13 commit f02bbb5
Show file tree
Hide file tree
Showing 7 changed files with 507 additions and 452 deletions.
26 changes: 13 additions & 13 deletions ckan/ckan_nose_plugin.py
Expand Up @@ -70,22 +70,22 @@ def startTest(self, test):
"""
startTest: start timing.
"""
self._started = time.time()
## self._started = time.time()

def stopTest(self, test):
"""
stopTest: stop timing, canonicalize the test name, and save
the run time.
"""
runtime = time.time() - self._started

# CTB: HACK!
f = open('times.txt', 'a')

testname = str(test)
#if ' ' in testname:
# testname = testname.split(' ')[1]

f.write('%s,%s\n' % (testname, str(runtime)))

f.close()
## runtime = time.time() - self._started
##
## # CTB: HACK!
## f = open('times.txt', 'a')
##
## testname = str(test)
## #if ' ' in testname:
## # testname = testname.split(' ')[1]
##
## f.write('%s,%s\n' % (testname, str(runtime)))
##
## f.close()
2 changes: 1 addition & 1 deletion ckan/controllers/package.py
Expand Up @@ -409,7 +409,7 @@ def new(self, data=None, errors=None, error_summary=None):
c.form = render(self.package_form, extra_vars=vars)
else:
c.form = render(self._package_form(package_type=package_type), extra_vars=vars)
return render( self._new_template(''))
return render( self._new_template(package_type))


def edit(self, id, data=None, errors=None, error_summary=None):
Expand Down
Binary file added ckan/public/img/glyphicons-halflings-white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ckan/public/img/glyphicons-halflings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
138 changes: 49 additions & 89 deletions ckan/public/scripts/vendor/recline/css/data-explorer.css
Expand Up @@ -23,39 +23,32 @@
height: 30px;
}

.header .recline-query-editor form {
height: 30px;
margin-bottom: 0;
.header .recline-query-editor .input-prepend {
margin-bottom: auto;
}

.header .recline-query-editor label {
float: none;
.header .recline-query-editor .text-query input {
float: left;
}

.header .recline-query-editor label {
float: none;
.recline-query-editor .text-query .btn-group {
display: inline;
float:left;
margin-left:-2px;
}

.header .recline-query-editor input.text-query {
float: left;
margin-top: 1px;
margin-right: 5px;
width: 200px;
.recline-query-editor .text-query .btn-group .dropdown-toggle {
-moz-border-radius:0px 3px 3px 0px;
-webkit-border-radius:0px 3px 3px 0px;
border-radius:0px 3px 3px 0px;
}

.header .recline-query-editor .pagination input {
width: 30px;
height: 18px;
padding: 2px 4px;
margin-top: -4px;
.recline-query-editor .text-query .btn-group ul {
margin-left:-110px;
}

.header .recline-query-editor .pagination a {
line-height: 28px;
}

.header .recline-query-editor form .btn {
vertical-align: top;
line-height: 26px;
}

.data-view-container {
Expand All @@ -79,14 +72,18 @@
* Data Table
*********************************************************/

.data-table .btn-group .dropdown-toggle {
padding: 1px 3px;
line-height: auto;
}

.data-table-container {
overflow: auto;
height: 550px;
}

.data-table {
border: 1px solid #ccc;
font-size: 12px;
width: 100%;
}

Expand All @@ -100,44 +97,46 @@
width: 20px;
}

/* direct borrowing from twitter buttons */
.data-table th,
.transform-column-view .expression-preview-table-wrapper th
{
background-color: #e6e6e6;
background-repeat: no-repeat;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(25%, #ffffff), to(#e6e6e6));
background-image: -webkit-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: -moz-linear-gradient(top, #ffffff, #ffffff 25%, #e6e6e6);
background-image: -ms-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: -o-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
color: #333;
border: 1px solid #ccc;
border-bottom-color: #bbb;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
-webkit-transition: 0.1s linear all;
-moz-transition: 0.1s linear all;
-ms-transition: 0.1s linear all;
-o-transition: 0.1s linear all;
transition: 0.1s linear all;
}


/**********************************************************
* Data Table Menus
*********************************************************/

a.column-header-menu, a.root-header-menu {
.column-header-menu, a.root-header-menu {
float: right;
display: block;
margin: 0 4px 0 0;
width: 17px;
height: 19px;
background-image: url(images/menu-dropdown.png);
background-repeat: no-repeat;
}

a.row-header-menu:hover, a.root-header-menu:hover {
background-position: -17px 0px;
text-decoration: none;
}

a.row-header-menu {
float: left;
display: block;
margin: -2px 0 -4px 0;
width: 17px;
height: 18px;
background-image: url(images/menu-dropdown.png);
background-repeat: no-repeat;
}

.read-only a.row-header-menu {
display: none;
}

a.column-header-menu:hover {
background-position: -17px 0px;
text-decoration: none;
}

.column-header-recon-stats-bar {
margin-top: 10px;
height: 4px;
Expand Down Expand Up @@ -203,45 +202,6 @@ div.data-table-cell-content-numeric > a.data-table-cell-edit {
color: red;
}

.data-table-menu-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

ul.data-table-menu {
display: none;
outline-style: none;
background: white;
color: black;
font-size: 12px;
height: auto;
list-style: none;
overflow: hidden;
position: absolute;
text-align: left;
width: 120px;
z-index: 666;
border: 1px solid #CCC;
border-right: 1px solid #666;
border-bottom: 1px solid #666;
margin: 0; padding: 0; }
ul.data-table-menu * {
margin: 0;
padding: 0; }
ul.data-table-menu a {
line-height: 14px;
color: black;
display: block;
padding: 5px 7px;
text-decoration: none; }
ul.data-table-menu li {
height: 24px; }
ul.data-table-menu li:hover {
background-color: #DBE8F8 }

/* TODO: not sure the rest of this is needed */
.data-table-cell-editor, .data-table-topic-popup {
overflow: auto;
Expand Down

0 comments on commit f02bbb5

Please sign in to comment.