compile views with . separator anot _ seperator
This commit is contained in:
@@ -54,8 +54,8 @@ header, main, footer {display:block; with:100%} /* IE fix */
|
||||
.right {right:0; text-align:right}
|
||||
.middle div {vertical-align:middle}
|
||||
.bottom div {vertical-align:bottom}
|
||||
.xscroll {overflow-x:scroll}
|
||||
.yscroll {overflow-y:scroll}
|
||||
.xscroll {overflow-x:scroll !important}
|
||||
.yscroll {overflow-y:scroll !important}
|
||||
.nowrap {white-space:nowrap; overflow-x:hidden}
|
||||
.fill {width:100%}
|
||||
.lifted {box-shadow:5px 5px 10px #666}
|
||||
@@ -75,7 +75,7 @@ input:invalid, input.error, textarea:invalid, textarea.error {background: #ffdfd
|
||||
/*** grid ***/
|
||||
.container {margin-right:-20px}
|
||||
.container>.quarter, .container>.half, .container>.third, .container>.twothirds, .container>.threequarters {display:inline-block; padding: 0 20px 0 0; vertical-align:top}
|
||||
.container>.fill{display: inline-block}
|
||||
.container>.fill{display: inline-block; padding-right: 20px; margin-right:-10px}
|
||||
.container img, .container video {max-width:100%}
|
||||
.max900 {margin-left:auto; margin-right:auto}
|
||||
|
||||
|
||||
Vendored
+20
@@ -136,6 +136,26 @@ def deploy(appname=None, all=False):
|
||||
|
||||
if backup:
|
||||
print 'TO RESTORE: fab restore:%s' % backup
|
||||
|
||||
def deploynobackup(appname=None):
|
||||
"""fab -H username@host deploy:appname,all"""
|
||||
appname = appname or os.path.split(os.getcwd())[-1]
|
||||
appfolder = applications+'/'+appname
|
||||
zipfile = os.path.join(appfolder, '_update.zip')
|
||||
if os.path.exists(zipfile):
|
||||
os.unlink(zipfile)
|
||||
|
||||
local('zip -r _update.zip */*.py */*/*.py views/*.html views/*/*.html static/*')
|
||||
|
||||
put('_update.zip','/tmp/_update.zip')
|
||||
try:
|
||||
with cd(appfolder):
|
||||
sudo('unzip -o /tmp/_update.zip')
|
||||
sudo('chown -R www-data:www-data *')
|
||||
sudo('echo "%s" > DATE_DEPLOYMENT' % now)
|
||||
|
||||
finally:
|
||||
sudo('rm /tmp/_update.zip')
|
||||
|
||||
def restore(backup):
|
||||
"""fab -H username@host restore:backupfilename"""
|
||||
|
||||
+2
-1
@@ -487,7 +487,8 @@ def compile_views(folder, skip_failed_views=False):
|
||||
else:
|
||||
raise Exception("%s in %s" % (e, fname))
|
||||
else:
|
||||
filename = ('views/%s.py' % fname).replace('/', '_').replace('\\', '_')
|
||||
filename = 'views.%s.py' % fname.replace(os.path.sep, '.')
|
||||
# filename = ('views/%s.py' % fname).replace('/', '_').replace('\\', '_')
|
||||
filename = pjoin(folder, 'compiled', filename)
|
||||
write_file(filename, data)
|
||||
save_pyc(filename)
|
||||
|
||||
Reference in New Issue
Block a user