[Zope-dev] session error

2004-10-19 Thread Gerry Kirk
A user got this error trying to edit content. It only happened once, and 
on second try she was ok. Using Zope 2.7.0:

Traceback (innermost last):
  Module ZPublisher.Publish, line 100, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module Products.CMFFormController.FSControllerPageTemplate, line 81, 
in __call__
  Module Products.CMFFormController.BaseControllerPageTemplate, line 
42, in _call
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.CMFCore.FSPageTemplate, line 191, in _exec
  Module Products.CMFCore.FSPageTemplate, line 124, in pt_render
  Module Products.PageTemplates.PageTemplate, line 96, in pt_render
   - FSControllerPageTemplate at /saultdiocese/base_edit used for 
/saultdiocese/DioceseOffice.2004-04-26.0049447933/WorkspaceFolder.2004-04-26.0631977769/Workspace.2004-07-15.1703647729/News.2004-10-13.7108192668/en
  Module TAL.TALInterpreter, line 189, in __call__
[ some TALInterpreter lines snipped ]
  Module TAL.TALInterpreter, line 459, in do_setLocal_tal
  Module Products.PageTemplates.TALES, line 220, in evaluate
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: widget.postback and request.get(fieldName, 
here.session_restore_value(fieldName, value)) or value
  Module Python expression widget.postback and request.get(fieldName, 
here.session_restore_value(fieldName, value)) or value, line 1, in 
expression
  Module Products.CMFCore.FSPythonScript, line 104, in __call__
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 160, in _exec
  Module None, line 2, in session_restore_value
   - FSPythonScript at /saultdiocese/session_restore_value used for 
/saultdiocese/DioceseOffice.2004-04-26.0049447933/WorkspaceFolder.2004-04-26.0631977769/Workspace.2004-07-15.1703647729/News.2004-10-13.7108192668/en
   - Line 2
  Module ZPublisher.HTTPRequest, line 1218, in __getattr__
  Module ZPublisher.HTTPRequest, line 1178, in get
  Module Products.Sessions.SessionDataManager, line 93, in getSessionData
  Module Products.Sessions.SessionDataManager, line 180, in 
_getSessionDataObject
  Module Products.Transience.Transience, line 176, in new_or_existing
  Module Products.Transience.Transience, line 799, in get
  Module Products.Transience.Transience, line 548, in _getCurrentBucket
  Module ZODB.Connection, line 559, in setstate
  Module tempstorage.TemporaryStorage, line 94, in load
KeyError: '\x00\x00\x00\x00\x00\x00\x05B'

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


RE: [Zope-dev] bizarre slicing behaviour in Zope

2003-12-18 Thread Gerry Kirk
Well, at least I know it's only a Zpublisher thing, and not an issue
with the underlying data. That's all that matters to me.

Gerry

Gerry Kirk
Project Manager
www.faithonline.com 
www.dioceseonline.com


 -Original Message-
 From: Terry Hancock [mailto:[EMAIL PROTECTED] 
 Sent: December 17, 2003 7:05 PM
 To: Casey Duncan; Gerry Kirk
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Zope-dev] bizarre slicing behaviour in Zope
 
 
 Perhaps more constructively, I think you can solve this by 
 either adding a dummy element to the tuple:
 
 return dd[4:] + (None,)
 
 or making it a list instead of a tuple:
 
 return list(dd[4:])
 
 Cheers,
 Terry
 
 --
 Terry Hancock ( hancock at anansispaceworks.com )
 Anansi Spaceworks  http://www.anansispaceworks.com
 


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] bizarre slicing behaviour in Zope

2003-12-17 Thread Gerry Kirk
try this in a script in zope 2.7b3 (maybe others, too) if you want to go 
crazy:

dd = ('dd', 'diocese', 'Parish.2003-12-16.8636751973', 'bob', 
'Workspace.2003-12-17.8140751750','gerry.2003-12-17.8140751750')

return dd[4:]

you should get the last two items from the tuple, but I get the last 
item returned as a string

if i loop through the slice, it's ok. it seems to be a publishing problem.

Gerry

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )