I suspect the problem is that you hardcoded a filename and if a second requests arrives it conflicts with the previous one. You may need file locking or using tempfile or stringio. This
> exec('from applications.%s.modules import updatexml as xml' % > request.application) > reload(xml) could also be a timeout issue. Does it take long to make the xml? btw can be replaced by xml = local_import('updatexml',force=True) On Feb 2, 4:45 am, Oguz Yarimtepe <oguzyarimt...@gmail.com> wrote: > 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.