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

@@ -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()