Ticket #173 (new defect)

Opened 3 months ago

Last modified 4 weeks ago

AttributeError: REQUEST

Reported by: pBartels@… Owned by: andycat
Priority: minor Milestone: 0.3 - Plone 3
Component: ContentLicensing Version:
Keywords: Cc:

Description

If you try to use a zope method, for example to upload a file (manage_addFile) from commandline "zopectl run script.py". The script fails, because no Request is set but accessed:

File "/opt/plumi-0.2-final/ContentLicensing/DublinCoreExtensions/UpdateLicenseMetadata.py", line 32, in UpdateLicenseMetadataHandler?

if hasattr(event.object.REQUEST, 'license') or hasattr(event.object.REQUEST, 'copyright_holder'):

AttributeError?: REQUEST

Attachments

Change History

Changed 4 weeks ago by andycat

  • milestone set to 0.3 - Plone 3

Add/Change #173 (AttributeError: REQUEST)

Author



Action
as new
 
Note: See TracTickets for help on using tickets.