On 7/17/12, Steffen Hoffmann <[email protected]> wrote: > Am 17.07.2012 18:45, wrote paul.wilding: >> I'm trying to write a json serialization of data to a json file >> stored in my plugin directory. The plugin is called buildrequests and >> the file is found at >> buildrequestsplugin\buildrequestsplugin\buildrequests\htdocs\json > > As a side-note I think it's poor design to write into htdocs, since this > is meant to be served by web servers as static, cache-able content. >
<OT?> Exactly ! E.g. afaicr Graphviz plugin caches generated drawings due to the fact that generating them is a time-consuming , resource intensive task . ... don't know exactly about the json files in this thread though ... </OT?> >> The error message written to the log is: >> >> Trac[buildrequests] ERROR: Exception occured writing to file: [Errno >> 2] No such file or directory: 'buildrequests/json/breqs.json' >> Traceback (most recent call last): File >> "build\bdist.win32\egg\buildrequests\buildrequests.py", line 109, in >> process_request file = open(breq_file, 'w') IOError: [Errno 2] No >> such file or directory: 'buildrequests/json/breqs.json' >> ... if you ask me ... maybe it's that you are in Windows (<= ouch ! ;) and you are not using the right path delimiter e.g. buildrequests/json/breqs.json vs buildrequests\json\breqs.json -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.
