In my application i have a updatexml.py under modules directory and at
the controller i am calling it as
exec('from applications.%s.modules import updatexml as xml' %
request.application)
reload(xml)
result = ta.write()
return result At the updatexml i have something like: import os def
write(): try: file_path =
"C:\\web2py\\applications\\bar\\static\\beverages.xml"
os.unlink(file_path) f = file(file_path, "w") s = '<?xml version="1.0"
encoding="UTF-8"?>\n\n' f.write(s) So i am trying to create an xml. But
at the f.write part it stops executing and i never see the wtite
function finished. What can be the problem?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.