#4 — AttributeError: UID when adding a Booking

by Justin Ryan last modified Jul 02, 2009 09:18 PM
State Confirmed
Area Functionality
Issue type Bug
Severity Medium
Submitted by Justin Ryan
Submitted on Feb 28, 2007
Responsible Martin Opstad Reistadbakk


I get this error using Booking/branches/2.5 on Plone 2.5.2 trying to create a booking, maybe I am doing something wrong?

Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Products.CMFFormController.FSControllerPageTemplate, line 90, in __call__
  Module Products.CMFFormController.BaseControllerPageTemplate, line 28, in _call
  Module Products.CMFFormController.ControllerBase, line 232, in getNext
   - __traceback_info__: ['id = booking_form', 'status = success', 'button=Add', 'errors={}', 'context=<RichDocument at acm-siggraph-traveling-art-show>', 'kwargs={}', 'next_action=None', '']
  Module Products.CMFFormController.Actions.TraverseTo, line 38, in __call__
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Products.CMFFormController.FSControllerPythonScript, line 104, in __call__
  Module Products.CMFFormController.Script, line 145, in __call__
  Module Products.CMFCore.FSPythonScript, line 108, in __call__
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 164, in _exec
  Module None, line 17, in addBookingScript
   - <FSControllerPythonScript at /plone-sites/siggraph.org/portal/addBookingScript used for /plone-sites/siggraph.org/portal/programs/traveling-art-show/acm-siggraph-traveling-art-show>
   - Line 17
  Module Products.Booking.BookingTool, line 71, in addBooking
  Module Products.Booking.BookingTool, line 91, in _addBooking
  Module Products.Booking.BookingTool, line 442, in invokeFactory
  Module Products.CMFCore.TypesTool, line 934, in constructContent
  Module Products.CMFCore.TypesTool, line 343, in constructInstance
  Module Products.CMFCore.TypesTool, line 574, in _constructInstance
  Module Products.Booking.content.Booking, line 6, in addBooking
  Module Products.ATContentTypes.content.base, line 226, in initializeArchetype
  Module Products.ATContentTypes.content.base, line 270, in edit
  Module Products.ATContentTypes.content.event, line 389, in update
  Module Products.Archetypes.BaseObject, line 466, in update
  Module Products.Archetypes.Schema, line 522, in updateAll
  Module Products.Archetypes.ClassGen, line 78, in generatedMutator
  Module Products.Archetypes.Field, line 1668, in set
AttributeError: UID
Steps to reproduce:
List RichDocument or maybe ATDocument in Bookable Types
Load "booking" tab of a RichDocument
Select a timeframe, click to add
Fill in some info, an end date, etc..
Save
See above traceback.
Added by (anonymous) on Mar 05, 2007 07:45 PM
Responsible manager: martior(UNASSIGNED)
Can't seem to recreate this. Have tried on a new plone 2.5 (trunk) site with RichDocument, Document and Meeting Room (From Bookable Types)

If you have Clouseau installed, can you try context.UID() on the rich document?

With best regards,


Martin Opstad Reistadbakk
Added by Martin Opstad Reistadbakk on Mar 05, 2007 07:50 PM
Issue state: unconfirmedopen
Responsible manager: (UNASSIGNED)martior
Added by (anonymous) on Jul 02, 2009 09:18 PM
QvsKSQ <a href="http://onnftbmwmwvb.com/">onnftbmwmwvb</a>, [url=http://ujibjldhjlen.com/]ujibjldhjlen[/url], [link=http://wzpjuueyfeag.com/]wzpjuueyfeag[/link], http://kqdrxauqfhov.com/

No responses can be added.