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
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
. (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
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.
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
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
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
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'] =
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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):
# ...
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
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
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
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
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
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
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
30 matches
Mail list logo