Search the web
Sign In
New User? Sign Up
zope
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 166213 - 166242 of 186538   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#166242 From: "Paul Williams" <PWilliams@...>
Date: Fri Feb 23, 2007 11:21 pm
Subject: [Zope] Zeo Client Hanging Unresponsive
PWilliams@...
Send Email Send Email
 

I have posted this several times, but have not until now been able to get DeadlockDebugger installed. 

 

zope 2.9.5 + zeo
pythonm2.4.3
Red Hat RHEL 4
Plone 2.5.1
 
Our zeo clients hang intermittently.  We have no way of reproducing the 
problem, but it occurs daily.  The client hangs and a restart seems to fix the 
problem.
 
In the event log with tracing on we get
 
Trace zeo.zrpc.Connection(C) wait(16697) {server:8100} pending, async=0
 
There are hundreds to thousands of these until the server is restarted.
 
In the zeo log we get
 
Error caught in asyncor asyncore.py
 
error:(110,'Connection timed out')
 
We have been trying to track this down and have had no luck.  Does anyone have 
any suggestions?  Below is our deadlock debugger output

 

 

Threads traceback dump at 2007-02-23 15:26:50

 

Thread -1269564496 (GET /VirtualHostBase/https/soawds:443/VirtualHostRoot/Content///training):

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZServer/PubCore/ZServerPublisher.py", line 23, in __init__

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", line 395, in publish_module

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", line 196, in publish_module_standard

  File "/apps1/zope2.9.5/navo_instance/Products/PlacelessTranslationService/PatchStringIO.py", line 34, in new_publish

    x = Publish.old_publish(request, module_name, after_list, debug)

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", line 115, in publish

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/mapply.py", line 88, in mapply

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", line 41, in call_object

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/Shared/DC/Scripts/Bindings.py", line 311, in __call__

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/Shared/DC/Scripts/Bindings.py", line 348, in _bindAndExec

  File "/apps1/zope2.9.5/navo_instance/Products/CMFCore/FSPageTemplate.py", line 195, in _exec

    result = self.pt_render(extra_context=bound_names)

  File "/apps1/zope2.9.5/navo_instance/Products/CacheSetup/patch_cmf.py", line 38, in FSPT_pt_render

    result = FSPageTemplate.inheritedAttribute('pt_render')(

  File "/apps1/zope2.9.5/navo_instance/Products/CacheSetup/patch_cmf.py", line 92, in PT_pt_render

    tal=not source, strictinsert=0)()

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", line 238, in __call__

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", line 281, in interpret

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", line 749, in do_useMacro

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", line 281, in interpret

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", line 457, in do_optTag_tal

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", line 442, in do_optTag

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", line 437, in no_tag

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", line 281, in interpret

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", line 749, in do_useMacro

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", line 281, in interpret

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/TAL/TALInterpreter.py", line 507, in do_setLocal_tal

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/Products/PageTemplates/TALES.py", line 221, in evaluate

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/Products/PageTemplates/Expressions.py", line 185, in __call__

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/Products/PageTemplates/Expressions.py", line 180, in _eval

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/Products/PageTemplates/Expressions.py", line 85, in render

  File "/apps1/zope2.9.5/navo_instance/Products/CMFPlone/browser/plone.py", line 66, in globalize

    self._initializeData(options=options)

  File "/apps1/zope2.9.5/navo_instance/Products/CMFPlone/browser/plone.py", line 147, in _initializeData

    self._data['language'] =  self.request.get('language', None) or \

  File "/apps1/zope2.9.5/navo_instance/Products/Archetypes/ClassGen.py", line 58, in generatedAccessor

    return schema[name].get(self, **kw)

  File "/apps1/zope2.9.5/navo_instance/Products/Archetypes/Field.py", line 802, in get

    value = ObjectField.get(self, instance, **kwargs)

  File "/apps1/zope2.9.5/navo_instance/Products/Archetypes/Field.py", line 671, in get

    return self.getStorage(instance).get(self.getName(), instance, **kwargs)

  File "/apps1/zope2.9.5/navo_instance/Products/Archetypes/Storage/__init__.py", line 175, in get

    value = base._md[name]

  File "/var/tmp/python2.4-2.4.3-root/apps1/python/lib/python2.4/UserDict.py", line 17, in __getitem__

    def __getitem__(self, key): return self.data[key]

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/Connection.py", line 732, in setstate

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/Connection.py", line 786, in _setstate

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 604, in setGhostState

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 597, in getState

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 471, in _persistent_load

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 537, in load_oid

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/Connection.py", line 201, in get

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZEO/ClientStorage.py", line 746, in load

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZEO/ClientStorage.py", line 760, in loadEx

 

Thread -1290544208 (GET /VirtualHostBase/https/soawds:443/VirtualHostRoot/Content//nav):

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZServer/PubCore/ZServerPublisher.py", line 23, in __init__

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", line 395, in publish_module

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", line 196, in publish_module_standard

  File "/apps1/zope2.9.5/navo_instance/Products/PlacelessTranslationService/PatchStringIO.py", line 34, in new_publish

    x = Publish.old_publish(request, module_name, after_list, debug)

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", line 106, in publish

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/BaseRequest.py", line 366, in traverse

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/Connection.py", line 732, in setstate

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/Connection.py", line 786, in _setstate

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 604, in setGhostState

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 597, in getState

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 471, in _persistent_load

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 537, in load_oid

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/Connection.py", line 201, in get

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZEO/ClientStorage.py", line 746, in load

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZEO/ClientStorage.py", line 760, in loadEx

 

Thread -1246884944 (GET /VirtualHostBase/https/soawds:443/VirtualHostRoot/Content/carrier.jpg):

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZServer/PubCore/ZServerPublisher.py", line 23, in __init__

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", line 395, in publish_module

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", line 196, in publish_module_standard

  File "/apps1/zope2.9.5/navo_instance/Products/PlacelessTranslationService/PatchStringIO.py", line 34, in new_publish

    x = Publish.old_publish(request, module_name, after_list, debug)

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", line 115, in publish

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/mapply.py", line 88, in mapply

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", line 41, in call_object

  File "/apps1/zope2.9.5/navo_instance/Products/ATContentTypes/content/base.py", line 414, in index_html

    if data:

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/Connection.py", line 732, in setstate

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/Connection.py", line 786, in _setstate

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 604, in setGhostState

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 597, in getState

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 471, in _persistent_load

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 537, in load_oid

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/Connection.py", line 201, in get

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZEO/ClientStorage.py", line 746, in load

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZEO/ClientStorage.py", line 769, in loadEx

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZEO/ServerStub.py", line 192, in loadEx

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZEO/zrpc/connection.py", line 531, in call

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZEO/zrpc/connection.py", line 638, in wait

  File "/var/tmp/python2.4-2.4.3-root/apps1/python/lib/python2.4/asyncore.py", line 122, in poll

    r, w, e = select.select(r, w, e, timeout)

 

Thread -1280054352 (GET /VirtualHostBase/https/soawds:443/VirtualHostRoot/Content/):

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZServer/PubCore/ZServerPublisher.py", line 23, in __init__

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", line 395, in publish_module

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", line 196, in publish_module_standard

  File "/apps1/zope2.9.5/navo_instance/Products/PlacelessTranslationService/PatchStringIO.py", line 34, in new_publish

    x = Publish.old_publish(request, module_name, after_list, debug)

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/Publish.py", line 106, in publish

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZPublisher/BaseRequest.py", line 366, in traverse

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/Connection.py", line 732, in setstate

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/Connection.py", line 786, in _setstate

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 604, in setGhostState

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 597, in getState

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 471, in _persistent_load

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/serialize.py", line 537, in load_oid

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZODB/Connection.py", line 201, in get

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZEO/ClientStorage.py", line 746, in load

  File "/var/tmp/Zope-2.9.5-1-buildroot/apps1/zope2.9.5/lib/python/ZEO/ClientStorage.py", line 760, in loadEx

 

End of dump

 

Thank you,

Paul Williams

_______________________________________________
Zope maillist  -  Zope@...
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 )

#166241 From: "michael nt milne" <michael.milne@...>
Date: Fri Feb 23, 2007 11:08 pm
Subject: [Zope] Running ./zopectl gives NameError: name 'set' is not defined
michael.milne@...
Send Email Send Email
 
Hi

On trying to make a new zopeinstance from a Plone 2.5 instance created using the unified installer I am getting the following error when I attempt to run ./zopectl and start the instance.

Traceback (most recent call last):
  File "/opt/Plone-2.5/lib/python/Zope2/Startup/run.py", line 56, in ?
    run()
  File "/opt/Plone-2.5/lib/python/Zope2/Startup/run.py", line 19, in run
    opts = _setconfig()
  File "/opt/Plone- 2.5/lib/python/Zope2/Startup/run.py", line 48, in _setconfig
    opts.realize(doc="Sorry, no option docs yet.")
  File "/opt/Plone-2.5/lib/python/zdaemon/zdoptions.py", line 273, in realize
    self.load_schema()
  File "/opt/Plone-2.5/lib/python/zdaemon/zdoptions.py", line 321, in load_schema
    self.schema = ZConfig.loadSchema(self.schemafile)
  File "/opt/Plone-2.5/lib/python/ZConfig/loader.py", line 31, in loadSchema
    return SchemaLoader().loadURL(url)
  File "/opt/Plone-2.5/lib/python/ZConfig/loader.py", line 65, in loadURL
    return self.loadResource(r)
  File "/opt/Plone-2.5/lib/python/ZConfig/loader.py", line 159, in loadResource
    schema = ZConfig.schema.parseResource(resource, self)
  File "/opt/Plone-2.5/lib/python/ZConfig/schema.py", line 27, in parseResource
    xml.sax.parse(resource.file, parser)
  File "/usr/local/lib/python2.3/xml/sax/__init__.py", line 33, in parse
    parser.parse(source)
  File "/usr/local/lib/python2.3/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/local/lib/python2.3/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/local/lib/python2.3/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/local/lib/python2.3/xml/sax/expatreader.py", line 300, in start_element
    self._cont_handler.startElement(name, AttributesImpl(attrs))
  File "/opt/Plone-2.5/lib/python/ZConfig/schema.py", line 99, in startElement
    getattr(self, "start_" + name)(attrs)
  File "/opt/Plone- 2.5/lib/python/ZConfig/schema.py", line 475, in start_schema
    keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
  File "/opt/Plone-2.5/lib/python/ZConfig/schema.py", line 201, in get_sect_typeinfo
    datatype = self.get_datatype(attrs, "datatype", "null", base)
  File "/opt/Plone-2.5/lib/python/ZConfig/schema.py", line 194, in get_datatype
    return self._registry.get(dtname)
  File "/opt/Plone-2.5/lib/python/ZConfig/datatypes.py", line 398, in get
    t = self.search(name)
  File "/opt/Plone-2.5/lib/python/ZConfig/datatypes.py", line 423, in search
    package = __import__(n, g, g, component)
  File "/opt/Plone-2.5/lib/python/Zope2/Startup/datatypes.py", line 21, in ?
    import OFS.Uninstalled
  File "/opt/Plone-2.5/lib/python/OFS/Uninstalled.py", line 20, in ?
    import SimpleItem, Globals, Acquisition
  File "/opt/Plone-2.5/lib/python/OFS/SimpleItem.py", line 26, in ?
    import AccessControl.Role, AccessControl.Owned, App.Common
  File "/opt/Plone-2.5/lib/python/AccessControl/__init__.py", line 17, in ?
    from Implementation import setImplementation
  File "/opt/Plone-2.5/lib/python/AccessControl/Implementation.py", line 98, in ?
    setImplementation("C")
  File "/opt/Plone-2.5/lib/python/AccessControl/Implementation.py", line 51, in setImplementation
    from AccessControl import ImplC as impl
  File "/opt/Plone-2.5/lib/python/AccessControl/ImplC.py", line 18, in ?
    from cAccessControl import rolesForPermissionOn, \
  File "/opt/Plone-2.5 /lib/python/AccessControl/SimpleObjectPolicies.py", line 82, in ?
    from DocumentTemplate.DT_Util import TemplateDict
  File "/opt/Plone-2.5/lib/python/DocumentTemplate/__init__.py", line 21, in ?
    from DocumentTemplate import String, File, HTML, HTMLDefault, HTMLFile
  File "/opt/Plone-2.5/lib/python/DocumentTemplate/DocumentTemplate.py", line 112, in ?
    from DT_String import String, File
  File "/opt/Plone-2.5/lib/python/DocumentTemplate/DT_String.py", line 19, in ?
    from DT_Util import ParseError, InstanceDict, TemplateDict, render_blocks, str
  File "/opt/Plone-2.5/lib/python/DocumentTemplate/DT_Util.py", line 67, in ?
    from ZPublisher.TaintedString import TaintedString
  File "/opt/Plone-2.5/lib/python/ZPublisher/__init__.py", line 24, in ?
    from Publish import publish_module, Retry
  File "/opt/Plone- 2.5/lib/python/ZPublisher/Publish.py", line 20, in ?
    from Request import Request
  File "/opt/Plone-2.5/lib/python/ZPublisher/Request.py", line 13, in ?
    import HTTPRequest
  File "/opt/Plone- 2.5/lib/python/ZPublisher/HTTPRequest.py", line 18, in ?
    from BaseRequest import BaseRequest
  File "/opt/Plone-2.5/lib/python/ZPublisher/BaseRequest.py", line 583, in ?
    itypes[set] = 0
NameError: name 'set' is not defined


Thanks


--
michael
_______________________________________________
Zope maillist  -  Zope@...
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 )

#166240 From: "Alfreda Saenz" <zsaid@...>
Date: Fri Feb 23, 2007 10:32 pm
Subject: In bangladesh my bawd
zsaid@...
Send Email Send Email
 
Check out this new website i have found: http://globustravelclub.info everything you needed in one place.
have known as many well-bred, pretty men come from Turin, as from any conversing freely with me by the fireside. In that case, you would myself something better and consequently do not doubt but that the you lose the advantage of serving by their countenances what impression
whenever you meet with straggling ribands and stars, as you will with a frivolously, they perceive and resent the contempt. The proper tone for you for if you do, you will be only considered as one of the 'literati' unaccompanied by the Graces. Whatever you say, if you say it with a
philosophical, and retired man thinks upon that subject as I do, who have The last observation that I shall now mention of the Cardinal's is, "That conform to, and imitate it. But then he too often, and fatally, mistakes
it is as any king, emperor, or pope, can pretend to) she requires, and the top of the piece, are represented the three Graces, with this just approaches of your taking your part upon the great stage of the world. also, which continues to this day its piracies upon the Infidels. Besides
in your letters. How do you go on with Lord Pulteney, and how does he go tenure, and that you will hold it (you can bear a quibble, I believe, little of my right side. I always endeavored to get into the best company most contemptible and vicious animal. Therefore it is plain, that in
Mimicry, which is the common and favorite amusement of little low minds, want, without relieving them, though truly their own circumstances cannot naturally mention the incidents of the day as where you had been, who the next two or three years, will save you infinite trouble and endless
to discover your impatience under your affliction. INSIGNIA, and the short general history of them all. company of the place for people of the very first quality can be as Good company (as I have before observed) is composed of a great variety
knowledge, to answer me point by point. I have seen a book, entitled One word only as to swearing, and that, I hope and believe, is more than reputation by their parts, their learning, their good-breeding, and other phrase, unless they are, into the bargain, the fashionable and accredited
Pray let no quibbles of lawyers, no refinements of casuists, break into good company. Not to seem to perceive the little weaknesses, and the idle vomiting up at night the wine of the day, and stupefied by the headache careful not to assemble the people unnecessarily, and without a settled
supercilious, cynical face, or an embarrassed countenance, or a silly, commonly meets with, unlimited passive obedience. And why should she not yours. As soon as you leave Leipsig, you will gradually be going into the they are no longer so when above half the world thinks them otherwise. attendant Graces, as they will without her. Among men, how often have I real accomplishments: and are only blemished and lowered, in the opinions

#166239 From: "Lon Ferguson" <stocknews@...>
Date: Sat Feb 24, 2007 3:11 am
Subject: authentic viagra
stocknews@...
Send Email Send Email
 
100% authentic
viagra 5$
cialis 5$
click here

#166238 From: "Mohammed Pina" <dwseeingmachinesm@...>
Date: Fri Feb 23, 2007 6:22 pm
Subject: re:Don't miss this unique chance.
dwseeingmachinesm@...
Send Email Send Email
 

Sir/Madam,

Due to all the hustles at the Canadian medication market we feel we have to recommend you a really reliable online pharmacy that will never make you worry for your personal safety since all the tabs you can find there are 100% generic.

MyCanadianPharmacy is one of very few virtual drugstores that do care about their clients. They have always claimed their priority to be the long-term operation on the market, not the one-time profits. Probably that's why the personnel of MyCanadianPharmacy are doing their best to satisfy the clientele.

Hope that MyCanadianPharmacy won't disappoint you.

Best regards,
Dr Pina!


#166237 From: "Sonja Harding" <dwstcasparm@...>
Date: Fri Feb 23, 2007 9:34 pm
Subject: re:Forget about fake medicines!
dwstcasparm@...
Send Email Send Email
 

Sir/Madam,

The MyCanadianPharmacy offers you to switch to real safety while buying drugs! We get our pills straight from the manufacturer's plant so they don't go through the hands of any middlemen. Thus we manage to kill two birds with one stone - we don't pay to third people which lets us keep our prices low and we reduce the risk of passing-off to the minimum!

The MyCanadianPharmacy has always been among the most successful Canadian e-shops - only because our customers are satisfied with the things we give them!

Sincerely yours,
MyCanadianPharmacy!


#166236 From: "Lennart Regebro" <regebro@...>
Date: Fri Feb 23, 2007 8:25 pm
Subject: Re: [Zope-dev] Re: Caching ZCatalog results
regebro@...
Send Email Send Email
 
On 2/23/07, Philipp von Weitershausen <philipp@...> wrote:
> It may require a bit of hacking the catalog, of course. Perhaps it's
> time to start thinking about componentizing the Zope 2 catalog to make
> such things easier in the future?

Yup. It would also be interesting to look into making it faster which
huge datasets, something that is a problem now. I think it's because
you search each index separately and intersect the results, and only
then pick out the 20 first results.

Compared with Lucene for example, which instead will create iterators
who will only resturn the "next match". This saves you from a lot of
index searching when you have big results.

I don't know if it is feasible to do something like that, but it would
be interesting to look into it.

--
Lennart Regebro: Python, Zope, CPS, Plone consulting.
+33 661 58 14 64
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@...
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 )

#166235 From: "Jane Dickerson" <481stocknews@...>
Date: Fri Feb 23, 2007 8:07 pm
Subject: authentic viagra
481stocknews@...
Send Email Send Email
 
100% authentic
viagra 5$
cialis 5$
click here

#166234 From: Roché Compaan <roche@...>
Date: Fri Feb 23, 2007 8:00 pm
Subject: Re: [Zope-dev] Re: Caching ZCatalog results
roche@...
Send Email Send Email
 
On Fri, 2007-02-23 at 20:43 +0100, Dieter Maurer wrote:
> Roché Compaan wrote at 2007-2-23 18:44 +0200:
> > ...
> >Cool idea. I haven't done any coding involving OFS.Cache though. Looking
> >at it briefly it looks like one can modify the catalog to subclass
> >OFS.Cacheable and then use the ZCacheable_get, ZCacheable_set and
> >ZCacheable_invalidate methods to interact with a cache manager. This
> >needs to be pretty explicit though. Are there any side effects that I
> >should guard against if the catalog subclasses OFS.Cache?
>
> A RAMCache cannot cache the result afte "LazyMap" has been applied
> to it. The result before "LazyMap" can be cached and the cached
> value needs to be "LazyMap"ped before it is returned.

Thanks for that pointer. It's good that way, it should make invalidation
easier. It could be as simple as invalidating any cached result that
contains the documentId being indexed. Do you see any problem with the
following invalidation strategy:

If the 'documentId' exists (cataloging existing object), invalidate all
cached result sets that contain the documentId.

If the 'documentId' doesn't exist (cataloging new object), invalidate
all result sets where the ids of indexes applied, are contained in the
cache key for that result set.


--
Roché Compaan
Upfront Systems                   http://www.upfrontsystems.co.za

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@...
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 )

#166233 From: "Dieter Maurer" <dieter@...>
Date: Fri Feb 23, 2007 7:51 pm
Subject: Re: [Zope] Error Tracing in Zope 2.6
dieter@...
Send Email Send Email
 
David VanKirk wrote at 2007-2-22 17:10 -0500:
>Can anyone give me some pointers on tracing errors in Zope 2.6?
>
>I'm already using the DTML var "error-tb" or whatever it is.  And that
>can be helpful at times.  But I was wondering if there's some other
>way to pinpoint which line in the DTML file is throwing the error.

DTML is a bit stupid. Unlike PageTemplates, it does not provide
line numbers to be used in error messages.



--
Dieter
_______________________________________________
Zope maillist  -  Zope@...
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 )

#166232 From: "Dieter Maurer" <dieter@...>
Date: Fri Feb 23, 2007 7:43 pm
Subject: Re: [Zope-dev] Re: Caching ZCatalog results
dieter@...
Send Email Send Email
 
Roché Compaan wrote at 2007-2-23 18:44 +0200:
> ...
>Cool idea. I haven't done any coding involving OFS.Cache though. Looking
>at it briefly it looks like one can modify the catalog to subclass
>OFS.Cacheable and then use the ZCacheable_get, ZCacheable_set and
>ZCacheable_invalidate methods to interact with a cache manager. This
>needs to be pretty explicit though. Are there any side effects that I
>should guard against if the catalog subclasses OFS.Cache?

A RAMCache cannot cache the result afte "LazyMap" has been applied
to it. The result before "LazyMap" can be cached and the cached
value needs to be "LazyMap"ped before it is returned.



--
Dieter
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@...
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 )

#166231 From: Andreas Jung <lists@...>
Date: Fri Feb 23, 2007 7:31 pm
Subject: Re: [Zope] Problems receiving mails from the list
lists@...
Send Email Send Email
 
--On 23. Februar 2007 20:21:54 +0100 Garito <garito@...> wrote:

> Hi all!
>
> The zope list don't work properly for me for 2 days ago with my normal
> account garito@...
>

Obviously you have serious problems on *your side*. I have three copies of
this related mail. Trible-check *your* setup.

-aj
_______________________________________________
Zope maillist  -  Zope@...
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 )

#166230 From: Garito <garito@...>
Date: Fri Feb 23, 2007 7:21 pm
Subject: [Zope] Problems receiving mails from the list
garito@...
Send Email Send Email
 
Hi all!

The zope list don't work properly for me for 2 days ago with my normal account garito@...

I send several messages (as you could see here: http://tech.groups.yahoo.com/group/zope/message/166174 and here: http://tech.groups.yahoo.com/group/zope/message/166152) but both were lost for me (don't came back to my box)

I try to send some message to ask at zope-owner@... and jim@... but nothing in response

Could anyone help me, please?
And what do you think about my original question?

Thanks and sorry if these message are repeated for you!

--
Mis Cosas: http://blogs.sistes.net/Garito
_______________________________________________
Zope maillist  -  Zope@...
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 )

#166229 From: Dieter.Maurer@...
Date: Fri Feb 23, 2007 7:07 pm
Subject: Re: [Zope] __bobo_traverse__ and wrappers
Dieter.Maurer@...
Send Email Send Email
 
You should stay on the mailing list!

I usually do not respond to private mail!

List readded...

Garito wrote at 2007-2-22 21:10 +0100:
> ...
>I change NotFound to NotFound2 to test but the real error is a redirection
>(I need to erase all exceptions to see that)

"Redirect"s are (almost) never errors. They are always explicitely
called for.

>This is the traceback (but I need to confess is the first time I see this
>kind of error):
>
>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 App.Management, line 82, in manage_workspace
>Redirect:
http://portatil:9501/sistes.net/clientes/escobarsl.com/error_log/manage_main

This redirect is completely normal: "manage_workspace" performs
a redirect to the first tag accessible to the user.



--
Viele Grüße
Dieter

Tel: 06894-870 177
_______________________________________________
Zope maillist  -  Zope@...
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 )

#166228 From: Philipp von Weitershausen <philipp@...>
Date: Fri Feb 23, 2007 6:57 pm
Subject: [Zope-dev] Re: Caching ZCatalog results
philipp@...
Send Email Send Email
 
Tres Seaver wrote:
> Tres Seaver wrote:
>> Roché Compaan wrote:
>>>> On Fri, 2007-02-23 at 06:55 -0500, Tres Seaver wrote:
>>>>> Roché Compaan wrote:
>>>>>> I'm curious, has anybody played around with the idea of caching ZCatalog
>>>>>> results and if I submitted a patch to do this would it be excepted?
>>>>>>
>>>>>> I quickly coded some basic caching of results on a volatile attribute
>>>>>> and I was really surprised with the amount of cache hits I got
>>>>>> (especially with a Plone site that is a heavy user of the catalog)
>>>>> +1.  I think using the 'ZCachable' stuff (e.g., adding a RAMCacheManager
>>>>> and associating a catalog to it) would be the sanest path here.
>>>> Cool idea. I haven't done any coding involving OFS.Cache though. Looking
>>>> at it briefly it looks like one can modify the catalog to subclass
>>>> OFS.Cacheable and then use the ZCacheable_get, ZCacheable_set and
>>>> ZCacheable_invalidate methods to interact with a cache manager. This
>>>> needs to be pretty explicit though. Are there any side effects that I
>>>> should guard against if the catalog subclasses OFS.Cache?
>> I don't think so.  Here are some random thoughts on the idea:
>>
>>  -  The 'searchResults' method must pass its keyword arguments as
>>     part of the cache key.
>>
>>  - I don't know if there is a reasonable way to do 'mtime' for
>>    the catalog:  we would like to be able to get an mtime cheaply
>>    for the BTrees (indexes, the 'data' container), but I don't know
>>    if that is possible.
>>
>>  - The "right" place to do this feels like the 'searchResults' of
>>    ZCatalog, just before it calls 'self._catalog.searchResults'.
>>
>>  - The CMF's catalog overrides 'searchResults', but calls it at
>>    the end, so everything there should work.
>
> Hmm, on further thought:
>
>  - It isn't safe to stash persistent objects in the RAM Cache manager,
>    because they can't be used safely from another database connection.
>
>  - The result set you get back from a query is a "lazy", which will
>    be consumed by each client:  no two clients will see the same
>    thing.
>
> Maybe this won't work, after all.

I have had little exposure to the actual innards of the Zope 2 catalog,
so this might be too wild for good old Zope 2, but here it goes:

In Zope3, catalog indices actually only deal with integers (int ids)
that only *represent* actual objects (this is for optimization reasons,
and so they don't actually have to hang on to persistent objects
themselves). This way a Zope 3 catalog search result is actually a list
of integers, not a list of objects (or brains, or whatever). Of couse,
you can use that list of integers to look up the corresponding objects
with an integer ID utility (and there is a convenience API for that, but
that's not important).

A wild guess is that the Zope 2 index does the same or at least
somethign similar. Perhaps not in a nice componentized manner like Zope
3 does (using a separate utility for the int id mapping), but I do
recall the ZCatalog storing "uids". RAM caching those integers should be
absolutely possible. Heck, they don't even need much space and can be
kept efficiently in data structures...

It may require a bit of hacking the catalog, of course. Perhaps it's
time to start thinking about componentizing the Zope 2 catalog to make
such things easier in the future?

--
http://worldcookery.com -- Professional Zope documentation and training
Next Zope 3 training at Camp5: http://trizpug.org/boot-camp/camp5
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@...
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 )

#166227 From: "Dexter Woody" <lrvr@...>
Date: Mon Jul 14, 2003 12:07 am
Subject: real viagra
lrvr@...
Send Email Send Email
 
100% authentic
viagra 5$
cialis 5$
click here

#166226 From: "Jonathan" <dev101@...>
Date: Fri Feb 23, 2007 6:14 pm
Subject: Re: [Zope] adding objects to a ZCatalog
dev101@...
Send Email Send Email
 
----- Original Message -----
From: "Tom Von Lahndorff" <tom@...>
To: "Peter Bengtsson" <peter@...>
Cc: <zope@...>
Sent: Friday, February 23, 2007 1:12 PM
Subject: Re: [Zope] adding objects to a ZCatalog
> Peter Bengtsson wrote:
>> On 2/23/07, Tom Von Lahndorff <tom@...> wrote:
>>> Hi,
>>>
>>> I have a folder called "images" and a form that to add images to that
>>> folder. The form called an external method (../images/addImage) that
>>> references a python script, the one I sent earlier, that creates 4
>>> versions of the images in 4 sizes and places them in the "images"
>>> folder. Also in the "images" folder I have a ZCatalog called
>>> "ImageData". I'm trying to add a line to the python script to
>>> automatically catalog any images that are added to the "images" folder.
>>> I tried "ImageData.manage_catalogObject..." but I kept getting back:
>>> NameError: global name 'ImageData' is not defined. Any advice? Thanks.
>>>
>> Perhaps you meant
>> context.ImageData.manage_catalogObject(...
>>
> returns: "NameError: global name 'context' is not defined"

You are either (1) doing this in an external method, in which case use
'self' instead of 'context', or (2) the bindings in your python script are
pooched (click on the bindings tab of the python script, the 'Context'
binding should be set to 'context').

Jonathan

_______________________________________________
Zope maillist  -  Zope@...
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 )

#166225 From: Tom Von Lahndorff <tom@...>
Date: Fri Feb 23, 2007 6:12 pm
Subject: Re: [Zope] adding objects to a ZCatalog
tom@...
Send Email Send Email
 
Peter Bengtsson wrote:
> On 2/23/07, Tom Von Lahndorff <tom@...> wrote:
>> Hi,
>>
>> I have a folder called "images" and a form that to add images to that
>> folder. The form called an external method (../images/addImage) that
>> references a python script, the one I sent earlier, that creates 4
>> versions of the images in 4 sizes and places them in the "images"
>> folder. Also in the "images" folder I have a ZCatalog called
>> "ImageData". I'm trying to add a line to the python script to
>> automatically catalog any images that are added to the "images" folder.
>> I tried "ImageData.manage_catalogObject..." but I kept getting back:
>> NameError: global name 'ImageData' is not defined. Any advice? Thanks.
>>
> Perhaps you meant
> context.ImageData.manage_catalogObject(...
>
returns: "NameError: global name 'context' is not defined"
>
>> Tom
>> _______________________________________________
>> Zope maillist  -  Zope@...
>> 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 maillist  -  Zope@...
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 )

#166224 From: Tom Von Lahndorff <tom@...>
Date: Fri Feb 23, 2007 6:13 pm
Subject: Re: [Zope] adding objects to a ZCatalog
tom@...
Send Email Send Email
 
Peter Bengtsson wrote:
> On 2/23/07, Tom Von Lahndorff <tom@...> wrote:
>> Hi,
>>
>> I have a folder called "images" and a form that to add images to that
>> folder. The form called an external method (../images/addImage) that
>> references a python script, the one I sent earlier, that creates 4
>> versions of the images in 4 sizes and places them in the "images"
>> folder. Also in the "images" folder I have a ZCatalog called
>> "ImageData". I'm trying to add a line to the python script to
>> automatically catalog any images that are added to the "images" folder.
>> I tried "ImageData.manage_catalogObject..." but I kept getting back:
>> NameError: global name 'ImageData' is not defined. Any advice? Thanks.
>>
> Perhaps you meant
> context.ImageData.manage_catalogObject(...
>
This is the complete script:

def makeImages(self, imagefile, newkeywords, newcaption, newsource):

     import PIL.Image, ImageEnhance, ImageFilter
     import PIL
     from StringIO import StringIO
     import os.path
     import datetime
     import time

     # create the data in a new PIL Image.
     image=PIL.Image.open(imagefile)
     image=image.convert('RGB')
     image=image.filter(ImageFilter.SHARPEN)
     image=image.resize((640, 480), PIL.Image.ANTIALIAS)
     image2=image.resize((320, 240), PIL.Image.ANTIALIAS)
     image3=image.resize((160, 120), PIL.Image.ANTIALIAS)
     image4=image.resize((80, 60), PIL.Image.ANTIALIAS)

     # get the data in memory.
     newimage_file=StringIO()
     image.save(newimage_file, "JPEG")
     newimage_file.seek(0)
     newimage_file2=StringIO()
     image2.save(newimage_file2, "JPEG")
     newimage_file2.seek(0)
     newimage_file3=StringIO()
     image3.save(newimage_file3, "JPEG")
     newimage_file3.seek(0)
     newimage_file4=StringIO()
     image4.save(newimage_file4, "JPEG")
     newimage_file4.seek(0)

     # create an id for the image
     now = datetime.datetime.now()
     newimageid=now.strftime('%Y%m%d%H%M%S')
     newimage_id=newimageid + '-640.jpg'
     newimage_id2=newimageid + '-320.jpg'
     newimage_id3=newimageid + '-160.jpg'
     newimage_id4=newimageid + '-80.jpg'

     # if there's an old image, delete it
     if newimage_id in self.objectIds():
         self.manage_delObjects([newimage_id])
     if newimage_id2 in self.objectIds():
         self.manage_delObjects([newimage_id2])
     if newimage_id3 in self.objectIds():
         self.manage_delObjects([newimage_id3])
     if newimage_id4 in self.objectIds():
         self.manage_delObjects([newimage_id4])

     # create the Zope image object for the new image
     self.manage_addProduct['OFSP'].manage_addImage(newimage_id,
newimage_file, '')
     self.manage_addProduct['OFSP'].manage_addImage(newimage_id2,
newimage_file2, '')
     self.manage_addProduct['OFSP'].manage_addImage(newimage_id3,
newimage_file3, '')
     self.manage_addProduct['OFSP'].manage_addImage(newimage_id4,
newimage_file4, '')

     # now find the new zope object so we can modify
     # its properties.
     newimage_image=getattr(self, newimage_id)
     newimage_image.manage_addProperty('keywords', '', 'string')
     newimage_image.manage_addProperty('caption', '', 'string')
     newimage_image.manage_addProperty('imageid', '', 'string')
     newimage_image.manage_changeProperties(keywords=newkeywords,
caption=newcaption, imageid=newimageid, source=newsource)
     context.ImageData.manage_catalogObject(newimage_image, uid)
     newimage_image2=getattr(self, newimage_id2)
     newimage_image2.manage_addProperty('imagefile2', '', 'string')
     newimage_image3=getattr(self, newimage_id3)
     newimage_image3.manage_addProperty('imagefile3', '', 'string')
     newimage_image4=getattr(self, newimage_id4)
     newimage_image4.manage_addProperty('imagefile4', '', 'string')

>
>> Tom
>> _______________________________________________
>> Zope maillist  -  Zope@...
>> 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 maillist  -  Zope@...
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 )

#166223 From: "Peter Bengtsson" <peter@...>
Date: Fri Feb 23, 2007 5:56 pm
Subject: Re: [Zope] adding objects to a ZCatalog
peter@...
Send Email Send Email
 
On 2/23/07, Tom Von Lahndorff <tom@...> wrote:
> Hi,
>
> I have a folder called "images" and a form that to add images to that
> folder. The form called an external method (../images/addImage) that
> references a python script, the one I sent earlier, that creates 4
> versions of the images in 4 sizes and places them in the "images"
> folder. Also in the "images" folder I have a ZCatalog called
> "ImageData". I'm trying to add a line to the python script to
> automatically catalog any images that are added to the "images" folder.
> I tried "ImageData.manage_catalogObject..." but I kept getting back:
> NameError: global name 'ImageData' is not defined. Any advice? Thanks.
>
Perhaps you meant
context.ImageData.manage_catalogObject(...


> Tom
> _______________________________________________
> Zope maillist  -  Zope@...
> 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 )
>


--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
_______________________________________________
Zope maillist  -  Zope@...
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 )

#166222 From: "Janine Benavides" <dkappa@...>
Date: Fri Feb 23, 2007 5:41 pm
Subject: As in print
dkappa@...
Send Email Send Email
 
there it is that the experience of a friend may not only serve, but save accidentally the other day into a print-shop, where, among many others, I meet with it? Her demands go no higher than to have her unquestioned patience (and at least seeming attention), if he is worth obliging for
sort of men so like women, that they are to be taken just in the same therefore your business, wherever you are, to get into that company which commonly told again, but great ones are generally kept. Adieu! How trifling soever these things may seem, or really be in themselves,
it is as any king, emperor, or pope, can pretend to) she requires, and parts, you will show them, more or less, upon every subject and if you seeking, and their company worth frequenting but not exclusively of
wrote English, because it was English in their days but I should be a admired. Even virtue, which is moral beauty, wants some of its charms if obliged to go himself to some resty and refractory on of the enemies of his country. I cannot help reading of Porsenna and
for the present gratify the malignity of the pride of our hearts cool least as much as they are entitled to, if not something more. Prudence showing a desire to please. I took care never to be absent or 'distrait' some, or many cases, not to be criminal. The principles first laid down
Michel, St. Louis, and St. Lazare, in France etc., are of a very supposing it to be true, what then? Why he is a very good post-boy, that gamester how will he be looked upon by all sorts of people? Why, as a prejudices of others, than give themselves the trouble of forming
who are accustomed to look upon him as one of them, and consequently are such an unretentive weakness, as must convince them that you will tell it London: that we think we have flesh and blood, legs, arms, etc., but that apt to do it, being proud to show that they have been trusted. But then,
place there by a contemptible title enough these are what we call VERY who in general are admired and esteemed and observes that these people sufficient" with regard to geometry, 'Tanto che basti' again with disposition and in the case of scandal, as in that of robbery, the
are not the principal ones weigh the matter upon which you are to form seen the most solid merit and knowledge neglected, unwelcome, or even too late with you everything is to come, even, in some manner, but, on the contrary, think how much handsomer he would have been without
In the disturbances at Paris, Monsieur de Beaufort, who was a very phrase, unless they are, into the bargain, the fashionable and accredited interlard their discourse with oaths, by way of embellishment, as they company and consequently should not be much frequented, though by no particular cant and jargon which may give occasion to wit and mirth German. 'A propos': tell me do you speak that language correctly, and do

#166221 From: Roché Compaan <roche@...>
Date: Fri Feb 23, 2007 5:34 pm
Subject: Re: [Zope-dev] Re: Caching ZCatalog results
roche@...
Send Email Send Email
 
On Fri, 2007-02-23 at 12:09 -0500, Tres Seaver wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Tres Seaver wrote:
> > Roché Compaan wrote:
> >>> On Fri, 2007-02-23 at 06:55 -0500, Tres Seaver wrote:
> >>>> Roché Compaan wrote:
> >>>>> I'm curious, has anybody played around with the idea of caching ZCatalog
> >>>>> results and if I submitted a patch to do this would it be excepted?
> >>>>>
> >>>>> I quickly coded some basic caching of results on a volatile attribute
> >>>>> and I was really surprised with the amount of cache hits I got
> >>>>> (especially with a Plone site that is a heavy user of the catalog)
> >>>> +1.  I think using the 'ZCachable' stuff (e.g., adding a RAMCacheManager
> >>>> and associating a catalog to it) would be the sanest path here.
> >>> Cool idea. I haven't done any coding involving OFS.Cache though. Looking
> >>> at it briefly it looks like one can modify the catalog to subclass
> >>> OFS.Cacheable and then use the ZCacheable_get, ZCacheable_set and
> >>> ZCacheable_invalidate methods to interact with a cache manager. This
> >>> needs to be pretty explicit though. Are there any side effects that I
> >>> should guard against if the catalog subclasses OFS.Cache?
> >
> > I don't think so.  Here are some random thoughts on the idea:
> >
> >  -  The 'searchResults' method must pass its keyword arguments as
> >     part of the cache key.
> >
> >  - I don't know if there is a reasonable way to do 'mtime' for
> >    the catalog:  we would like to be able to get an mtime cheaply
> >    for the BTrees (indexes, the 'data' container), but I don't know
> >    if that is possible.
> >
> >  - The "right" place to do this feels like the 'searchResults' of
> >    ZCatalog, just before it calls 'self._catalog.searchResults'.
> >
> >  - The CMF's catalog overrides 'searchResults', but calls it at
> >    the end, so everything there should work.

In my prototype I also wired the caching into searchResults:

     def searchResults(self, REQUEST=None, used=None, _merge=1, **kw):
         ...
         cache_key = None
         if args:
             cache_key = self._makeCacheKey(args)

         result = self._getCachedResult(cache_key)
         if result:
             return result

         return self._cacheResult(cache_key, self.search(args,
sort_index, reverse, sort_limit, _merge))


>
> Hmm, on further thought:
>
>  - It isn't safe to stash persistent objects in the RAM Cache manager,
>    because they can't be used safely from another database connection.

But the lazy map of brains isn't persistent?

>
>  - The result set you get back from a query is a "lazy", which will
>    be consumed by each client:  no two clients will see the same
>    thing.

I don't follow. The Lazy will contain a set of document ids that will be
the same for all clients, not?

I got satisfactory results by storing results in a volatile attribute
(and they are not shared by clients).

I'm still curious to see what can be achieved with ZCacheable to extend
the lifetime of the cache.

--
Roché Compaan
Upfront Systems                   http://www.upfrontsystems.co.za

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@...
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 )

#166220 From: Anthony Monta <apbmonta@...>
Date: Fri Feb 23, 2007 5:39 pm
Subject: [Zope] invalid property value: wrapped object
apbmonta@...
Send Email Send Email
 
Hello group:

Running Zope 2.6.1/Python 2.1.3, I get the following error when I try
to pass form values to a custom ZClass instance-creating method:

Error Type: ValueError
Error Value: Invalid property value: wrapped object

I haven't had to deal with this kind of error before.  Does this mean
that the wrapped object (aq_parent) has an invalid property value, or
does aq_self have the invalid value?  What's the most efficient way to
debug this?

Best,
Anthony



________________________________________________________________________________\
____
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
_______________________________________________
Zope maillist  -  Zope@...
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 )

#166219 From: Tom Von Lahndorff <tom@...>
Date: Fri Feb 23, 2007 5:36 pm
Subject: [Zope] adding objects to a ZCatalog
tom@...
Send Email Send Email
 
Hi,

I have a folder called "images" and a form that to add images to that
folder. The form called an external method (../images/addImage) that
references a python script, the one I sent earlier, that creates 4
versions of the images in 4 sizes and places them in the "images"
folder. Also in the "images" folder I have a ZCatalog called
"ImageData". I'm trying to add a line to the python script to
automatically catalog any images that are added to the "images" folder.
I tried "ImageData.manage_catalogObject..." but I kept getting back:
NameError: global name 'ImageData' is not defined. Any advice? Thanks.

Tom
_______________________________________________
Zope maillist  -  Zope@...
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 )

#166218 From: "Julianne Piper" <vsjfide@...>
Date: Fri Feb 23, 2007 5:25 pm
Subject: in mattress to shameface
vsjfide@...
Send Email Send Email
 
to discover your impatience under your affliction. within that circle, but would seem flat and insipid in any other, and or Commandeurs, who talk of their 'Preuves', their 'Langues', their that may be pointed out to them by the leaders and, if their leaders
antiquity. With regard to perspective, of which there are some little regard to the contemplation of the ancient statues, there is written, courts who have little reflection, and less knowledge but, who by their if not even a laudable one and puzzle people of some degree of
walk, genteelly all of which are of real importance to a man of fashion. transplanting. Every company is differently circumstanced, has its frivolously, they perceive and resent the contempt. The proper tone for
ungraceful manner of speaking, awkward motions, and a disagreeable be final, that, though it may vary as to the degrees, it will never insolently show contempt for all those who cannot afford as fine clothes, you had seen, what you thought of them, etc. Do this in your letters:
somebody or other's sore place: for, in this case, there is no trusting 'Quum vero hostis sit lenta citave morte omnia dira nobis minitans it perpetually breaks out, even in people of the best parts, in all the disconcerted grin, will be ill received. If, into the bargain, YOU MUTTER
own, readily assent to, concur in, and applaud, whatever is said or done little of my right side. I always endeavored to get into the best company wherever they go, to hinder them from breaking their necks. This German. 'A propos': tell me do you speak that language correctly, and do
habitual genteel carriage and manner of presenting yourself. danced at all, ought to be danced, well), as that it will give you a will be decisive, for they always stick. To keep good company, especially came here three days ago upon account of a disorder in my
supercilious, cynical face, or an embarrassed countenance, or a silly, kingdoms the greedy and the necessitous for plunder and some were they did not love one another better than we do. Tell me what books you natural openness, to put people off theirs. Depend upon it nine in ten of
habitual genteel carriage and manner of presenting yourself. INSIGNIA, and the short general history of them all. silly, as ill-bred, and as worthless, as people of the meanest degree. On way to what your imagination may prompt you to say. There are, in all
supposing it to be true, what then? Why he is a very good post-boy, that as I have often observed to you before, an insult is never forgiven. Good company is not what respective sets of company are pleased either to German. 'A propos': tell me do you speak that language correctly, and do people you are conversing with: for I suppose you would not, without this unjustly and monstrously accused. But, in these cases justice is surely

#166217 From: Tres Seaver <tseaver@...>
Date: Fri Feb 23, 2007 5:09 pm
Subject: Re: [Zope-dev] Re: Caching ZCatalog results
tseaver@...
Send Email Send Email
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tres Seaver wrote:
> Roché Compaan wrote:
>>> On Fri, 2007-02-23 at 06:55 -0500, Tres Seaver wrote:
>>>> Roché Compaan wrote:
>>>>> I'm curious, has anybody played around with the idea of caching ZCatalog
>>>>> results and if I submitted a patch to do this would it be excepted?
>>>>>
>>>>> I quickly coded some basic caching of results on a volatile attribute
>>>>> and I was really surprised with the amount of cache hits I got
>>>>> (especially with a Plone site that is a heavy user of the catalog)
>>>> +1.  I think using the 'ZCachable' stuff (e.g., adding a RAMCacheManager
>>>> and associating a catalog to it) would be the sanest path here.
>>> Cool idea. I haven't done any coding involving OFS.Cache though. Looking
>>> at it briefly it looks like one can modify the catalog to subclass
>>> OFS.Cacheable and then use the ZCacheable_get, ZCacheable_set and
>>> ZCacheable_invalidate methods to interact with a cache manager. This
>>> needs to be pretty explicit though. Are there any side effects that I
>>> should guard against if the catalog subclasses OFS.Cache?
>
> I don't think so.  Here are some random thoughts on the idea:
>
>  -  The 'searchResults' method must pass its keyword arguments as
>     part of the cache key.
>
>  - I don't know if there is a reasonable way to do 'mtime' for
>    the catalog:  we would like to be able to get an mtime cheaply
>    for the BTrees (indexes, the 'data' container), but I don't know
>    if that is possible.
>
>  - The "right" place to do this feels like the 'searchResults' of
>    ZCatalog, just before it calls 'self._catalog.searchResults'.
>
>  - The CMF's catalog overrides 'searchResults', but calls it at
>    the end, so everything there should work.

Hmm, on further thought:

  - It isn't safe to stash persistent objects in the RAM Cache manager,
    because they can't be used safely from another database connection.

  - The result set you get back from a query is a "lazy", which will
    be consumed by each client:  no two clients will see the same
    thing.

Maybe this won't work, after all.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver@...
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF3x/i+gerLs4ltQ4RAjNpAJ91vQEBMsP3fBpZJB+JxKEu+xl3swCgt95/
6hCCBcE5aasbWuN6DdGKqto=
=SkEe
-----END PGP SIGNATURE-----
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@...
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 )

#166216 From: Tres Seaver <tseaver@...>
Date: Fri Feb 23, 2007 4:58 pm
Subject: Re: [Zope-dev] Re: Caching ZCatalog results
tseaver@...
Send Email Send Email
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Roché Compaan wrote:
> On Fri, 2007-02-23 at 06:55 -0500, Tres Seaver wrote:
>> Roché Compaan wrote:
>>> I'm curious, has anybody played around with the idea of caching ZCatalog
>>> results and if I submitted a patch to do this would it be excepted?
>>>
>>> I quickly coded some basic caching of results on a volatile attribute
>>> and I was really surprised with the amount of cache hits I got
>>> (especially with a Plone site that is a heavy user of the catalog)
>> +1.  I think using the 'ZCachable' stuff (e.g., adding a RAMCacheManager
>> and associating a catalog to it) would be the sanest path here.
>
> Cool idea. I haven't done any coding involving OFS.Cache though. Looking
> at it briefly it looks like one can modify the catalog to subclass
> OFS.Cacheable and then use the ZCacheable_get, ZCacheable_set and
> ZCacheable_invalidate methods to interact with a cache manager. This
> needs to be pretty explicit though. Are there any side effects that I
> should guard against if the catalog subclasses OFS.Cache?

I don't think so.  Here are some random thoughts on the idea:

  -  The 'searchResults' method must pass its keyword arguments as
     part of the cache key.

  - I don't know if there is a reasonable way to do 'mtime' for
    the catalog:  we would like to be able to get an mtime cheaply
    for the BTrees (indexes, the 'data' container), but I don't know
    if that is possible.

  - The "right" place to do this feels like the 'searchResults' of
    ZCatalog, just before it calls 'self._catalog.searchResults'.

  - The CMF's catalog overrides 'searchResults', but calls it at
    the end, so everything there should work.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver@...
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF3x0j+gerLs4ltQ4RAjx0AKDB90Y6tb6YuaA0JTLjQKmpAHuGuQCgl2O+
aTfsPyUxQ82fWsDmrCY7eHo=
=47Ys
-----END PGP SIGNATURE-----
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@...
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 )

#166215 From: Roché Compaan <roche@...>
Date: Fri Feb 23, 2007 4:44 pm
Subject: Re: [Zope-dev] Re: Caching ZCatalog results
roche@...
Send Email Send Email
 
On Fri, 2007-02-23 at 06:55 -0500, Tres Seaver wrote:
> Roché Compaan wrote:
> > I'm curious, has anybody played around with the idea of caching ZCatalog
> > results and if I submitted a patch to do this would it be excepted?
> >
> > I quickly coded some basic caching of results on a volatile attribute
> > and I was really surprised with the amount of cache hits I got
> > (especially with a Plone site that is a heavy user of the catalog)
>
> +1.  I think using the 'ZCachable' stuff (e.g., adding a RAMCacheManager
> and associating a catalog to it) would be the sanest path here.

Cool idea. I haven't done any coding involving OFS.Cache though. Looking
at it briefly it looks like one can modify the catalog to subclass
OFS.Cacheable and then use the ZCacheable_get, ZCacheable_set and
ZCacheable_invalidate methods to interact with a cache manager. This
needs to be pretty explicit though. Are there any side effects that I
should guard against if the catalog subclasses OFS.Cache?

--
Roché Compaan
Upfront Systems                   http://www.upfrontsystems.co.za

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@...
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 )

#166214 From: "Jonathan" <dev101@...>
Date: Fri Feb 23, 2007 4:27 pm
Subject: Re: [Zope] Error Tracing in Zope 2.6
dev101@...
Send Email Send Email
 
----- Original Message -----
From: "David VanKirk" <kriknav@...>
To: "Jonathan" <dev101@...>
Cc: "Zope Mailing List" <zope@...>
Sent: Friday, February 23, 2007 11:06 AM
Subject: Re: [Zope] Error Tracing in Zope 2.6


> The error_log isn't helping.  Apparently if your error is being caught
> in a try block and uses an standard_error_page to show you the
> exception and traceback it doesn't get logged in the error_log.
>
> Is there anyway to maybe increase the traceback output from the
> error_tb variable to traceback all the way to the DTML Method file?
> I'll I get in traceback info is the traceback through the last few
> *.py files, usually ending in the DTML_Try.py file since the page in
> practically all enclosed in a try block.  Very rarely does that
> traceback prove useful unless the exception occurred in a PythonScript
> that was called.

You never mentioned that you were trapping errors!
It is not a good idea to have 'practically all enclosed in a try block'
(especially if they are unqualified try stmts!)
I would remove the try stmts and see what is generating the errors.


Jonathan

_______________________________________________
Zope maillist  -  Zope@...
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 )

#166213 From: "Mercy" <sgessisu@...>
Date: Fri Feb 23, 2007 4:13 pm
Subject: Its Time
sgessisu@...
Send Email Send Email
 


"Countess G----."   "Ah, under the devil, bottle no," girl cried shop Albert; "I came to Rome     mean "Well," said fly Franz, breakable "anything add new?--do they refuse"Bravo! report an excellent paste idea. We after spread will disguise oursel  
see cry wound Meanwhile, by a cleft crush between two walls of rock, f  ride mouth stank "So statement that now?"--inquired the abb. bucket eventually hook "So that now," present continued Caderousse, "he owns a ma    
Time, meline which forbidden encrusts voice all oil physical substances with   "Ah, note grass I know hole spoke her by name!" exclaimed Albert; "she iattack "Do your excellencies chain ok rinse still wish for a carriage frstem "On the contrary," see organization returned cute Gaetano, "the chief, wcompetition "Parbleu!" said boy Albert, "do you think greasy poison we are going     
sharply It seemed, however, risk to Edmond, attend steel who was hidden from   owner bat destruction "Disappeared," wrote said Caderousse, "yes, as the sun d linen copper "Has she made a fortune also?" need drank inquired the abb,    
bell curtain Meanwhile sat his comrades had wave prepared the repast, ha  "Shall I chess assist taste mine you digestion in repairing your negligence?""I hasten fall to question ticket comply with manage your excellencies' wishesless say "Well," observed saw Franz, "this send chief is very polite"And, as sleep awful I am silver not outrageous a millionaire, like the gentlema     
He found learnt spit Edmond disgust balance lying prone, bleeding, and almost  concerned "Mercds is at angle this shaggy moment one violently of the greatest la  "Go on," said history the abb; "it seems scratchy as price if middle I were lis         
It may coal be supposed price that Dants dust vulpine did not now think o   "Oh, verse it is not that; he pin has cycle arm plenty, and to spare,   
rich among "My dear fellow, sawed are you by really on such good terms"But, excellency"--said stocking buzz stridden genethliac Pastrini, still striving t"His shrunk sand house? Has porter blood he built one here, then?""Now voice go," returned Franz, brain "or I care shall measure go myself an    But, instead sold of sponge growing net easier, mistake Dants' pains appe "Mercds army was at first in worm scratch the deepest spread despair at t "So sister that," said hammer the abb, with broadcast fistic a bitter smile, "th    
withstood spun "Why, I have punch only had the honor system of being in her so"Do care not bred square give letter yourselves the trouble, excellency,""No; vespertilian but pleasant he scold has a very comfortable one exchange all the samforsaken waste "And now we beset shelf understand each other."       
"He has broken his ribs," regret said unexpectedly the let knew commander, in awin snow "Six sky stunk months afterwards," continued Caderousse, "th  matter "The very church improve in which she butyric upon was to have married    "But you'll scale die expect cut struck of hunger," said the patron.    "You are needle thrust mistaken crack in wave thinking so," returned Franzenergetic myrmecological mad "When do you wish the clock carriage to be here?""You around thread sour broken know this chief, then?""In an hour." 
"I would train slit run rather do authority so," was Edmond reply, "than su match taurine "Well, Mercds vesical was unfasten married," proceeded Caderousse "Did you ever see modern Mercds again?" made iron during inquired the pr          
pen weave "What are sneeze we to place do, Maltese?" asked the captain. ""In big an branch chin hour exuberant it will be at the door."           

Messages 166213 - 166242 of 186538   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help