[Zope3-dev] Possible bug in zope.app.cache.ram

2007-03-07 Thread Shaar Gabriel
hi. i think i found a bug in zope.app.cache.ram if an entry is added to the cache without having a miss first (for example to cache in advance some long calculation that is going to be looked up in the near furutre anyway), then the miss counter for that object doesn't exist, and

[Zope3-dev] question about undo and caching

2007-03-02 Thread Shaar Gabriel
hi. i have a calculation that is cached for an object, based on the presence of some other objects (Specifically i have parts, orders, supplies etc. and i cache the status of the order. if it was fully supplied or still has to be supplied) if one of those objects is removed, the cache is

[Zope3-dev] zc.resourcelibrary resources positioning in head

2007-02-21 Thread Shaar Gabriel
hi a little thought about zc.resourcelibrary. shouldn't the added resources (at least javascript) be closer to /head than to head. this way the specific javascript resources can make use of the more general ones included in the skin with the template. does this make sense ?

[Zope3-dev] possible bug in zc.relationship when passing empty container as target in isLinked

2007-01-23 Thread Shaar Gabriel
Hi i think i found a bug in zc.relationship svn. the bug is in shared.AbstractContainer.isLinked if the target parameter is a container with no objects, then it resolves to False in a bool context and tokenization fails target and tokenize({'target': target}) returns the target instead of the