cms updates

This commit is contained in:
Rushabh Mehta
2012-05-09 11:42:52 +05:30
parent 458ca8eddb
commit b9483d1809
10 changed files with 41 additions and 22 deletions

View File

@@ -137,9 +137,7 @@ wn.provide('wn.settings');wn.provide('wn.ui');
/*
* lib/js/wn/versions.js
*/
wn.versions={check:function(){if(window.localStorage){if(window._version_number==-1||parseInt(localStorage._version_number)!=parseInt(window._version_number)){var localversion=localStorage._version_number;localStorage.clear();console.log("Cache cleared - version: "+localversion
+' to '+_version_number)}
localStorage.setItem('_version_number',window._version_number);}}}
wn.versions={check:function(){if(window.localStorage){var localversion=localStorage._version_number;localStorage.clear();}}}
/*
* lib/js/wn/assets.js
*/

View File

@@ -24,9 +24,7 @@ wn.provide('wn.settings');wn.provide('wn.ui');
/*
* lib/js/wn/versions.js
*/
wn.versions={check:function(){if(window.localStorage){if(window._version_number==-1||parseInt(localStorage._version_number)!=parseInt(window._version_number)){var localversion=localStorage._version_number;localStorage.clear();console.log("Cache cleared - version: "+localversion
+' to '+_version_number)}
localStorage.setItem('_version_number',window._version_number);}}}
wn.versions={check:function(){if(window.localStorage){var localversion=localStorage._version_number;localStorage.clear();}}}
/*
* lib/js/wn/assets.js
*/

View File

@@ -1,4 +1,3 @@
window._version_number = "2a070dfb16a80c744b13c7609859086ef91dfd755d70032ee00ee4f6";
window.home_page = "index";
// footer signup widget
// automatically adds it to the .layout-main div of the page

View File

@@ -21,7 +21,8 @@ import cgi, cgitb, os, sys
cgitb.enable()
# import libs
sys.path.append('lib/py')
sys.path.append('..')
sys.path.append('../lib/py')
import webnotes
import webnotes.auth
@@ -29,7 +30,13 @@ import webnotes.auth
if __name__=='__main__':
webnotes.http_request = webnotes.auth.HTTPRequest()
from webnotes.cms import feed
xml = feed.generate()
print 'Content-Type: text/xml'
print
print xml
try:
print 'Content-Type: text/xml'
print
xml = feed.generate()
print xml
except Exception, e:
print 'Content-Type: text/html'
print
import webnotes.utils
print webnotes.utils.getTraceback()

View File

@@ -20,7 +20,8 @@ import cgi, cgitb, os, sys
cgitb.enable()
# import libs
sys.path.append('lib/py')
sys.path.append('..')
sys.path.append('../lib/py')
import webnotes
import webnotes.auth