[Zope3-Users] Multiple containers in one object - how to implement in Zope3?

2006-04-01 Thread Alek Kowalczyk
in the book or on the net, so I suspect I was looking for wrong solution and this should be realized in very another way in Zope3... Best regards, Alek Kowalczyk. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3

[Zope3-Users] Starting thread in object deserialize

2006-04-16 Thread Alek Kowalczyk
Hello, I have an object which needs to be associated with a thread. The thread should be started on object creation and stopped when object is removed or zope is stopped. The object is persistent - there is a possibility that it will be created by both web interface and when starting zope

[Zope3-Users] Re: Starting thread in object deserialize

2006-04-16 Thread Alek Kowalczyk
. (This is due to multiple ZODB connections and caching.) Please detail a bit more what are your needs and use cases. Florent Alek Kowalczyk wrote: Hello, I have an object which needs to be associated with a thread. The thread should be started on object creation and stopped when object is removed

Re: [Zope3-Users] Debugger for Zope 3

2006-04-25 Thread Alek Kowalczyk
Achim Domma napisał(a): Hi, could somebody recommend a good visual debugger (not pdb) which can be used with Zope 3? I would like to start Zope 3 with the debugger, set some breakpoints in my modules and step through the code to learn more about Zope. I use eclipse 3.1 with pydev 1.0.x.

Re: [Zope3-Users] Non-owning references in Zope3

2006-05-24 Thread Alek Kowalczyk
Tom Dossis wrote: [EMAIL PROTECTED] wrote: Hi, I am relatively new to Zope3. I could not find anywhere an example, what is the 'right way' to make non-owning reference to another object in Zope? Every piece of zope3 docs is full of examples of containers, this makes a good tree

Re: [Zope3-Users] Reference to a COM object (or other external resource) in a Zope object

2006-05-26 Thread Alek Kowalczyk
Achim Domma napisał(a): [EMAIL PROTECTED] wrote: I am creating a kind of Zope proxy to a 3rd party COM object (I'm accessing it using Pywin32 facilities). I have to store a reference to this object somewhere in my Zope object. But, for obvious reasons, this COM object cannot be serialized so

Re: [Zope3-Users] Re: Render ZPT template to send rich-text HTML mail

2006-06-01 Thread Alek Kowalczyk
Philipp von Weitershausen wrote: [EMAIL PROTECTED] wrote: Hi, I need to send some rich-text (HTML) mail, containing information based on many objects. It would be nice to render it using ZPT provided by Zope instead of manual creation of HTML text. Can I (ab)use ZPT for such

Re: [Zope3-Users] store persistent objects

2006-06-21 Thread Alek Kowalczyk
Leticia Larrosa wrote: Hi all To fix the error I must change the __init__ of the BTreeContainer class to the follow: class persistent_test(BTreeContainer): implements(Ipersistent_test) def __init__(self): BTreeContainer.__init__(self) self['un_padre'] =

Re: [Zope3-Users] NTLM and Active Directory based authentication for Zope 3

2006-08-19 Thread Alek Kowalczyk
Benji York escribió: [EMAIL PROTECTED] wrote: Hello, I need to setup single sign on for Zope 3. My Zope 3.2 is running stand alone on Windows server. We (Zope Corp.) just open sourced zc.winauth. It's not single sign-on, but shared sign-on, but it might be helpful. You can view the

Re: [Zope3-Users] zc.winauth takes too much time to authenticate every page load

2006-10-12 Thread Alek Kowalczyk
Benji York escribió: Benji York wrote: [a mixture of truth and pre-caffeine insanity] [EMAIL PROTECTED] wrote: I suspect my problem may be a configuration issue in my PAU It sounds like it; make sure you have the No Challenge if Authenticated plugin enabled. My suggestion above makes no

Re: [Zope3-Users] zc.winauth takes too much time to authenticate every page load

2006-10-15 Thread Alek Kowalczyk
Maciej Wisniowski escribió: I'd like to see a plugin that stores that information in a session, that way the plugin could be used with zc.winauth or any other credential mechanism. I know nothing about PAU architecture... yet ;) If you, or some other PAU experts, could give some suggestions

Re: [Zope3-Users] Nested lists- iteration over non-sequence

2006-10-21 Thread Alek Kowalczyk
Daniel M escribió: Hello, I'm new to Zope, and using Zope 3.3. I have managed to get a simple site running. I am having trouble getting the web interface to let me edit an object that contains a list, where the type of values in the list, is an interface that also holds a list. I can’t get

Re: [Zope3-Users] Strange - You are not authorized

2006-10-24 Thread Alek Kowalczyk
Darryl Cousins escribió: Hi Alek, Mulitiple interfaces are probably not the source of the problem. I guess you are looking at the ZMI? You can click on 'errors' and 'configure' the utility to also record Unauthorized exceptions. This will give you a traceback to begin tracking your problem.

[Zope3-Users] Filtered Container

2007-01-25 Thread Alek Kowalczyk
Hi, I am looking for some filtering adapter for containers. You know, the object which can adapt an IMyContainer to another IMyFilteredContainer, listing only items which fall into some filter criteria. I thought it may be quite common pattern, but couldn't find any generic, already done solution

[Zope3-Users] zope.scheduler and triggering actions on local objects

2007-02-01 Thread Alek Kowalczyk
Hi, I need to trigger periodically activities on various local components (i.e stored in ZoDB). I found zope.scheduler package which seem to be nice cron-like tool for Zope. But I did not find a clue how to use it with local components - in examples it is registered as global utility. I think

[Zope3-Users] 'exceptions.TypeError: can't pickle Checker objects' in zope.scheduler task in transaction.commit()

2007-02-13 Thread Alek Kowalczyk
Hello, I finally managed to access local components from zope.scheduler, but I felt to another, even worse trouble. In the zope.scheduler task I create and/or update some local objects, but then I fall into the following exception: 'exceptions.TypeError: can't pickle Checker objects' in

[Zope3-Users] Re: 'exceptions.TypeError: can't pickle Checker objects' in zope.scheduler task in transaction.commit()

2007-02-13 Thread Alek Kowalczyk
Adam Groszer [EMAIL PROTECTED] writes: Hello Alek, 'can't pickle Checker objects' happened to me, when I tried to write a security proxied object to the ZODB. Monday, February 12, 2007, 4:49:01 PM, you wrote: Hi, The problem disappeared when I removed permission declaration from

[Zope3-Users] IContainer as IReadFile in WebDav

2007-02-16 Thread Alek Kowalczyk
Hi, I have the following objects structure: ISomeContainer (subclass IContainer) IPlot (subclass of IContainer) IPlotPoint (subclass IContained) IPlotPoint is rather a simple object, containing X and Y of the point I would like to provide all the IPlot's in ISomeContainer as CSV files

[Zope3-Users] Re: IContainer as IReadFile in WebDav

2007-02-19 Thread Alek Kowalczyk
adapter for=.interfaces.plot.IPlot provides=zope.filerepresentation.interfaces.IReadFile factory=.csv.PlotAsCsvFile permission=zope.Public / One small mistake (just here, in my real code it was OK). Of course the adapter provides IReadFile, no IReadDirectory). I still can't make this to

[Zope3-Users] OrderedContainer.keys() does not return newely added key in ObjectAddedEvent

2007-02-20 Thread Alek Kowalczyk
Hi, I have subscribed to the ObjectAddedEvent for my OrderedContainer. There is the a strange behavior in the event handler: - myObj is my contained object - myObj.__parent__ is my OrderedContainer. 1. this returns True when called in the event handler: myObj.__name__ in myObj.__parent__ 2. this

[Zope3-Users] Re: NotYet error when creating content during container creation

2007-02-28 Thread Alek Kowalczyk
Tom Dossis [EMAIL PROTECTED] writes: I have another issue with IntIds and NotYet: I have some BTreeContainer-derieved object which is short-living container. It is never stored in ZoDB - it is just a result of some query to external system. It worked fine until I enabled IntIds utility. Now I

[Zope3-Users] Re: NotYet error when creating content during container creation

2007-02-28 Thread Alek Kowalczyk
FB [EMAIL PROTECTED] writes: It tries that, because it's handler is called by the container's __setitem__ method. Just write your own - like that: class MyContainer(BTreeContainer): def __setitem__(self,key,object) object.__parent__=self object.__name__=key

[Zope3-Users] Re: NotYet error when creating content during container creation

2007-02-28 Thread Alek Kowalczyk
Philipp von Weitershausen [EMAIL PROTECTED] writes: I don't think I would like to redesign my objects just because the addIntIdSubscriber does not catch NotYet when getting IKeyReference: at adapter(ILocation, IObjectAddedEvent) def addIntIdSubscriber(ob, event): # ...

[Zope3-Users] How to determine server URL without request

2007-04-24 Thread Alek Kowalczyk
Hello, I have a zope.scheduler task, which monitors my ZoDB in a loop and sends e-mail messages about some of the objects found. The e-mail message should contain URL to allow the receiver to access more details about the object through the web browser. The mail message is created as a browser

[Zope3-Users] Evolution of ZoDB after changing python modules structure (moving content classes to another module)

2007-06-06 Thread Alek Kowalczyk
Hi, I have just done some slight refactoring of my code. Ok, it's not even refactoring, just a tree structure cleanup. I moved my content class from mypackage.mymodule.MyContentClass into mypackage.mysubpackage.mymodule.MyContentClass. I changed all the paths in imports and Unit Tests work

[Zope3-Users] Re: Evolution of ZoDB after changing python modules structure (moving content classes to another module)

2007-06-08 Thread Alek Kowalczyk
Alek Kowalczyk [EMAIL PROTECTED] writes: Hi, I moved my content class from mypackage.mymodule.MyContentClass into mypackage.mysubpackage.mymodule.MyContentClass. But when started Zope and went to visit an object I have previously created (of MyContentClass), I get: ComponentLookupError

[Zope3-Users] schema.List validation does not accept PersistentList

2007-07-19 Thread Alek Kowalczyk
Hi, I have a schema with the List field defined: from zope.interface import Interface from zope.schema import List, TextLine class IMyObject(Interface): myList = List(title=u'mylist', value_type=TextLine(title=u'item')) Then I implement this using field property. Then in constructor I

[Zope3-Users] Re: schema.List validation does not accept PersistentList

2007-07-19 Thread Alek Kowalczyk
Leonardo Rochael [EMAIL PROTECTED] writes: As it happens, PersistentList is not an instance of list. Proponents of strong dynamically-typed OO would complain that this code is forcing the comingling of the type concept (a.k.a. interface) into the concept of class inheritance [...] The

[Zope3-Users] hurry.workflow - retrieve item's history with timestamps of states transitions

2007-07-31 Thread Alek Kowalczyk
Hello, I would like to have an ability to get 'workflow history' for my object. History should contain a list of transitions with from and to states and with timestamps. Have anyone tried to implement such a simple functionality in hurry.workflow, similar to what ClearQuest does? I would be

[Zope3-Users] catalog of objects' states (hurry.workflow)

2007-07-31 Thread Alek Kowalczyk
Hello again, I have a rather big tree of MyObjects. MyObjects are adaptable to hurry.workflow's IWorklowState. Now I'd like to create a catalog to index all MyObjects by their current states. How to do that? An option might be(?) to add to MyObject property like that: @property def