[Zope] TypeError when copy FS python script to custom folder

2007-01-09 Thread Edmund Moseley
I am in the process of trying to add RAMCaches to my python scripts, 
and wanted to test it out TTW via custom.
However, whenever I make a copy of my FS python script to custom, and 
then view the object which uses this script, I get the following error:


TypeError: arg is not a code object

This python script is used by my archetype object to fetch a vocabulary 
list, by calling a separate zsql method.


Any ideas why this happens?

Thanks,
Edmund

Here is the last part of the traceback:

snip
#  Module TAL.TALInterpreter, line 281, in interpret
# Module TAL.TALInterpreter, line 507, in do_setLocal_tal
# Module Products.PageTemplates.TALES, line 221, in evaluate
URL: file:MEIS/skins/MEIS/vocab_or_other.pt
Line 52, Column 6
Expression: PythonExpr field.Vocabulary(here)
Names:

{'container': PloneSite at /meis,
'context': Autopsy at /meis/meis/unfiledautopsies/b199301068,
'default': Products.PageTemplates.TALES.Default instance at 0x2aaab56cb4d0,
'here': Autopsy at /meis/meis/unfiledautopsies/b199301068,
'loop': Products.PageTemplates.TALES.SafeMapping object at 0x88182d8,
'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter 
instance at 0x2aaab56cb6c8,

'nothing': None,
'options': {'args': ()},
'repeat': Products.PageTemplates.TALES.SafeMapping object at 0x88182d8,
'request': HTTPRequest, 
URL=https://plone.ocme.unc.edu/meis/meis/unfiledautopsies/b199301068/autopsy_view,

'root': Application at ,
'template': FSPageTemplate at /meis/autopsy_view used for 
/meis/meis/unfiledautopsies/b199301068,

'traverse_subpath': [],
'user': PropertiedUser 'zadmin'}

# Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
__traceback_info__: field.Vocabulary(here)
# Module Python expression field.Vocabulary(here), line 1, in expression
# Module Products.Archetypes.Field, line 441, in Vocabulary
# Module Products.Archetypes.utils, line 137, in mapply
# Module inspect, line 607, in getargs

TypeError: arg is not a code object
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] zope spins when try to update workflow

2006-12-28 Thread Edmund Moseley

Hi all,

Not sure if this is the right list or not, please let me know if I 
should redirect my question.
When I try to run Update security settings in the portal_workflow 
tool, my zope process gradually swallows up all the cpu, seems to still 
be running fine, but then after a couple of hours, swallows up all the 
memory, the load on the server exceeds 4 and makes it pretty well 
unresponsive.

I have about 35,000 objects in the ZODB.

Has anybody had any similar experience or know of any hints as to how I 
should debug this?


I tried following the guidelines on this website:
http://www.zope.org/Members/4am/debugspinningzope
but couldn't see anything that was actually stuck.

Zope 2.9.5, Python 2.4.4, Plone 2.5.1

Thanks for any advice,
Edmund
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Zope API Help System not working?

2005-07-25 Thread Edmund Moseley

I am a newbie to Zope/Plone.

I am trying to view the Zope API via the Help System in the ZMI, but I get
prompted to login and my admin login does not work.

I'm pretty sure I downloaded the latest version of plone which I was led to
believe would have the latest version of zope  python:

Zope Version
(unreleased version, python 2.3.3, win32)
Python Version
2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)]
System Platform
win32

If I do not have the latest version of zope for my plone instance, how can i
upgrade?

Thanks for any help,

Ed.

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )