Re: [Zope-dev] Re: current best of breed ZEO for Zope 2.6.2 in production?
On Thursday 02 October 2003 19.50, Jeremy Hylton wrote: > On Thu, 2003-10-02 at 13:34, Leonardo Rochael Almeida wrote: > > > I thought that was easy to miss, so I changed the heading from > > > > > > Zope Enterprise Objects > > > > > > to > > > > > > Zope Enterprise Objects (OBSOLETE) > > > > And I still missed it! Amazing! it must've been the pre-lunch hunger or > > something... Maybe you should use a blink tag and a red font tag inside a > > one cell table with a thick border (/me runs from the HTML-standards > > mob). > > Maybe we should just delete it. Add a new release, version "obsolete" or something. People always get the latest release. Or add a meta refresh to redirect after 1s to the new page. -- /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
[Zope-dev] i18n
Hi. Where is the ZPT i18n-support described? I cant find anything thats up2date. -- /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Bugfix release?
> > I guess what I'm saying is that for a version 2.x.y, x should behave > > as you describe while y should go up as often as a bug is discovered > > and fixed... > > That means we either waste a lot more time doing releases, or the > releases become a lot more shoddy, hardly more than a snapshot from > CVS. Neither sounds attractive, sorry. Right. So what we really should do instead, is this http://www.python.org/peps/pep-0251.html The important parts, imho: * "Small bug fixes and changes will occur up until the first beta release." * "A week before every alpha, beta or other release, we forked off a branch which became the release. Changes to the branch are limited to the release manager and his designated 'bots." Thats really the current problem. Changes happening just before the release. -- /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Bugfix release?
> Someone posted already a fix for this problem. It should not be hard to fix > this single problem by exchanging the DateTime.py file on your sites That really doesn't matter. The official release on http://www.zope.org/Products still has the bug. -- /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: [ZODB-Dev] Blather
> >>What do ZODB and VerboseSecurity log at the BLATHER level? > > > > 2002-09-12T17:55:53 BLATHER(-100) VerboseSecurity Unauthorized: Your user > > account does not have the required permission. Access to 'manage' of > > (Application instance at 8b9cf90) denied. Your user account, Anonymous > > User, exists at /acl_users. Access requires one of the following roles: > > ['Manager']. Your roles in this context are ['Anonymous']. > > > > 2002-09-12T17:56:57 BLATHER(-100) ZODB Commiting subtransaction of size > > 2909677 > > > > Maybe its Shanes VerboseSecurity product that should use INFO, cause all > > it does is output those logs... I mean, if you have it installed, you > > probably want to see the logs. > > This is a tough call. VerboseSecurity often logs information that might > be useful, but which does not actually raise an Unauthorized error. For > example, if you look at the management interface as a semi-restricted > user, you'll see only some of the tabs. VerboseSecurity will output a > log message for each tab you can't see and for every ZMI request. This > is far more info than most people want (including me). :-) Why not keep this at BLATHER, but change the "Unauthorized error's" to INFO? -- /Magnus Heino ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] rfc1123_date
Thats how I solved it. Seems a bit weird though to put date methods like iso8601_date, rfc1123_date and rfc850_date in App.Common, when DateTime already has method like that, like rfc822. /Magnus > You could use ModuleSecurityInfo (see Zope Developer's Guide), you > could use an External Method, or you could write your own product. > > >>Why is rfc1123_date a method in App.Common, and not a method on >>DateTime.DateTime? >> >>How am I supposed to use it from dtml/zpt? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] rfc1123_date
Why is rfc1123_date a method in App.Common, and not a method on DateTime.DateTime? How am I supposed to use it from dtml/zpt? /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: SV: [Zope-dev] Small Alert - Temp Solution - more...
> > You will see that the Set-Cookie is different in the 5 cases > > My conclusion for now is that something could be wrong with the Apache > rewriting process. Nope, cause I'm running Roxen.. and have the same behaviour. /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: SV: [Zope-dev] Small Alert - Temp Solution - more...
> Jean-Paul Smets wrote: > > I could find out that certain cookie names work, some others do not > > > > Works > > > > __ac_ > > __ac_ra > > __ac_rak1 > > __ac_nex1 > > __ac_erp5 > > > > Does not work > > > > __ac > > __ac_rack1 > > __ac_rack12 > > > > Really strange. > > What browser are you using? Strange things like this happen for me > occasionally after a Mozilla upgrade, but I just delete the cookies for > the site and everything goes back to normal. I figure someone at > Netscape is just fiddling with the cookie code. :-) I'm using IE6. It isn't just this one. http://collector.zope.org/Zope/251 and http://collector.zope.org/Zope/260 also does different things when using VHM. /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: [Zope-dev] Zope 2.6 project updated
> I don't know OrderedFolder very well but it'd be very useful in several > of my projects, so I can volunteer a bit of time in helping to get it > in Zope 2.6 as well. I'd rather see that you used your time to put Formulator into 2.6 :-P /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: SV: [Zope-dev] Small Alert - Temp Solution
I can verify this. Same thing happens here too. I had to redirect login_form to :8080 before, since I could not login to CMF otherwise, using VHM. I changed auth_cookie from __ac to __ac_, and now I can login through VHM... Bug... I'll put it in the Collector. (I'm using a week old cvs snapshot of Zope-2_5-branch and CMF1.2) /Magnus > I started debugging Zope. I found that the various methods in > CookieCrumbler are called and should normally set a cookie for > auth_cookie. > > However, under VHM operation, this does not happen when auth_cookie == > '__ac' > > I changed the name of the authentication cookie to __ac_erp5 in the CMF > (www.erp5.org is the site I am working on). > > Everything works fine now. > > I have absolutely no idea what it can mean. > > As a reminder, I had no problems for 6 months and suddenly, after a small > upgrade, all this strange behaviour started. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: [Zope-dev] Small Alert
> I just upgraded this morning a Debian Woody server with Zope 2.5. The > upgrade has resulted in all my CMF (which use SiteRoot or > VirtualHostMonster) to refuse any authentication. > > Without SiteRoot or VirtualHostMonster, everything is fine. I have had this problem (and a few others, some fixed in CVS) with VHM for some time now. Everything is fine on 8080, but fails using VHM. Since noone else experienced it, I thougt that it was something local here... /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] SV: [Zope] authenticating over XML-RPC to implement the Blogger API
> object. Has anyone elsedone user authentication via parameters? I have patched my xmlrpclib.py to allow authentication with username/password. I dont have access to it right now, but I can send it to you tomorrow morning... /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Acquisition and Threads
Can someone please tell me what is going on here? [magnus@bombardier magnus]$ cat aq.py from Acquisition import Implicit from threading import Thread import time class A(Implicit, Thread): def run(self): print context.aq_self class B(Implicit): pass b = B() b.a = A() b.a.start() time.sleep(2) [magnus@bombardier magnus]$ python2 aq.py Traceback (most recent call last): File "aq.py", line 16, in ? b.a = A() File "/usr/lib/python2.1/threading.py", line 326, in __init__ _Verbose.__init__(self, verbose) TypeError: unbound method __init__() must be called with instance as first argument ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: [Zope-dev] Open Letters and Zope 3
> The beauty of Z3, though, is that you should have much more flexibility > in what you choose to use. Don't like DTML? Don't use it. Really hate Thats really not the problem imho. The problem is that some products will use DTMLFile and standard_html_header/footer, and that is a real mess... /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: [Zope-dev] Re: Fishbowl?
> This is just a guess, but I suspect that this is a sort of unfortunate > cycle developing: people post proposals, get (understandably) dismayed > at the response time and end up not spending much time there, either > contributing or providing feedback. Well, lets move this discussion to a wiki and see how it goes... This is a tool issue. /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: SV: [Zope-dev] Re: Fishbowl?
> > Well, that checkin was done to the cvs 4 days ago. If you haven't > > read the one line at dev.zope.org about it being available in the > > cvs, or if you dont subscribe to the cvs mailinglist, how are you > > supposed to know that it exists? :-P > > Actually, he sent an email to zope-dev on 11/26. Version control went > to zope-dev on 10/23. Between the two, one email of discussion. Yes. You are right. I found the message. I subscribe to 11 zope mailinglists, and I really try to read them all, but I must have missed this one. > This is why I'm leery of thinking this is simply a tool issue. I think > we'll need more creativity, hijacking notwithstanding. :^) I don't agree. I read the proposal when Brian wrote it, I even got a snapshot from him a while back. Still, I missed the release. The current tool, the Wiki at http://dev.zope.org/Wikis/DevSite/Projects/WebServicesForZope/FrontPage, does not contain the info that he sent in the mail, and it got some links pointing at non-existing pages. I thought I'd fix that, but it says that "Only the owners may edit this page"... But, everything is not bad, the Webservice package looks really good! :-) /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: [Zope-dev] Re: Fishbowl?
> This isn't a good track record. Brian produced 35 pages worth of > almost-flawless docs on web services to go with his code. But no > comments. And he's doing this on his own time. So let's remember that > this is a two-way street. Well, that checkin was done to the cvs 4 days ago. If you haven't read the one line at dev.zope.org about it being available in the cvs, or if you dont subscribe to the cvs mailinglist, how are you supposed to know that it exists? :-P I downloaded the Webservice package a few days ago, and I agree, the docs are really good. But sending a mail to Brian, who probably gets too many mails every day anyway, saying "Good work!"... well. I dunno. /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: [Zope-dev] Fishbowl?
> 3. We could use another open source tool. Bugzilla springs to > mind. Yes, it's not Zope, or even python, but it does > work, certainly better than anything we, as a community, have > right now or could build in the time it would take to > install and set up. Well, I'm not too sure about that. Bugzilla is an undocumented, hacked, run-at-one-place-but-dont-try-to-move-it-beast. imho. Just like sourceforge... I gave it a try a while ago, but threw it away. IMHO. /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] LDAP
Hi. I'm struggeling with zope, cmf and ldap. I started of with a fresh RH7.2 installation. I ran the openldap migration scripts. Then created users using the posixAccout and posixGroup class. These classes seem to be different from what is recommended in the LDAPUserFolder product. Anyway, I have added an LDAPUserFolder, and I am able to add new new users, browse users, add groups (LDAPUserFolder cannot handle posixGroups). What I can't do though, is login using this info. If I from the management page in LDAPUserolder changes password, the encryption will change from the current Crypt, to SHA. When it is SHA, I cannot login on using pam. But even if I have sha, logging in via LDAPUserFolder still doesn't work. So, does anyone have a clue of whats going on? :) I haven't used ldap before, so it might just be me doing something stupid... all I want is an ldap database, using classes that work both in zope and with pam. /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Security
Hi. Looking at Amos ZPublisher howto, http://www.zope.org/Members/Amos/ZPublisher Would it be possible to use the security machinery too? /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: [Zope-dev] Web Services for Zope
> Well... the status is that I'm trying to work on it on an > as-possible basis :) The problem is that it hasn't been very > possible for the last few weeks. > > If you just need to generate WSDL and you're willing to live > on the bleeding edge and use some code that might still change > a lot in the future to get the job done, let me know and I'll > be happy to send you a snapshot of what I have... Why don't you put into the public CVS instead? /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: [Zope-dev] ZPT equivalent for DTMLFile?
> I'd like to use ZPT for product add pages and the like, where > I'd usually use > DTMLFile. > > How do I do that? PageTemplates itself does this. Take a look at the initialize method in PageTemplates/ZopePageTemplate.py /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] url quote from pyton scripts
Hi. How can I do a url quote from a python script? Can I somehow access the method in urllib or DT_Var or how can it be done? -- /Magnus Heino ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: [Zope-dev] 60GB Data.fs?
> Also how are the disks layed out? Is it possible to have, say, 5 disks > each on their own (no RAID) and then split the data.fs over them using > PartitionedFileStorage or similar. Where can I get PartitionedFileStorage? /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: Subject: [Zope-dev] change ownership
The one that comes with Zope. /Magnus > -Ursprungligt meddelande- > Från: Tim McLaughlin [mailto:[EMAIL PROTECTED]] > Skickat: den 10 maj 2001 15:26 > Till: 'Magnus Heino (Rivermen)'; Tim McLaughlin > Kopia: '[EMAIL PROTECTED]' > Ämne: RE: Subject: [Zope-dev] change ownership > > > What kind of UserFolder are you using... LoginManager or something? > > -Original Message- > From: Magnus Heino (Rivermen) [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 10, 2001 9:13 AM > To: 'Tim McLaughlin'; Magnus Heino (Rivermen) > Cc: '[EMAIL PROTECTED]' > Subject: SV: Subject: [Zope-dev] change ownership > > > > > def set_owner(self, user_name): > > self.changeOwnership(self.acl_users.getUser(user_name)) > > > > OK, so that should keep you busy for a while. Anyway, the > > Not long enough :-P > > > point is that the > > parameter to changeOwnership is a User _object_. Good luck. > > Ive got this external method in a zclass: > > def setObjectOwner(self, username): > self.changeOwnership(self.acl_users.getUser(username)) > > I call it like > http://localhost:8080/myobject/setObjectOwner?username=foo > and get this error: > > > > Zope Error > Zope has encountered an error while publishing this resource. > > Error Type: AttributeError > Error Value: aq_inner > > > > -- > -- > > > Troubleshooting Suggestions > > The URL may be incorrect. > The parameters passed to this resource may be incorrect. > A resource that this resource relies on may be encountering an error. > For more detailed information about the error, please refer > to the HTML > source for this page. > > If the error persists please contact the site maintainer. > Thank you for your > patience. > > > > > Traceback (innermost last): > File > /usr/home/magnus/www/Zope-2.3.2-src/lib/python/ZPublisher/Publish.py, > line 223, in publish_module > File > /usr/home/magnus/www/Zope-2.3.2-src/lib/python/ZPublisher/Publish.py, > line 187, in publish > File > /usr/home/magnus/www/Zope-2.3.2-src/lib/python/Zope/__init__.py, line > 221, in zpublisher_exception_hook > (Object: PLATS_1) > File > /usr/home/magnus/www/Zope-2.3.2-src/lib/python/ZPublisher/Publish.py, > line 171, in publish > File > /usr/home/magnus/www/Zope-2.3.2-src/lib/python/ZPublisher/mapply.py, > line 160, in mapply > (Object: setObjectOwner) > File > /usr/home/magnus/www/Zope-2.3.2-src/lib/python/ZPublisher/Publish.py, > line 112, in call_object > (Object: setObjectOwner) > File > /usr/home/magnus/www/Zope-2.3.2-src/lib/python/Products/Extern > alMethod/Exter > nalMethod.py, line 262, in __call__ > (Object: setObjectOwner) > (Info: ((, 'david'), {}, None)) > File > /usr/home/magnus/www/Zope-2.3.2-src/Extensions/Owner.py, line 2, in > setObjectOwner > (Object: PLATS_1) > File > /usr/home/magnus/www/Zope-2.3.2-src/lib/python/AccessControl/O > wned.py, line > 168, in changeOwnership > (Object: PLATS_1) > File > /usr/home/magnus/www/Zope-2.3.2-src/lib/python/AccessControl/O > wned.py, line > 302, in ownerInfo > AttributeError: (see above) > ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: Subject: [Zope-dev] change ownership
> def set_owner(self, user_name): > self.changeOwnership(self.acl_users.getUser(user_name)) > > OK, so that should keep you busy for a while. Anyway, the Not long enough :-P > point is that the > parameter to changeOwnership is a User _object_. Good luck. Ive got this external method in a zclass: def setObjectOwner(self, username): self.changeOwnership(self.acl_users.getUser(username)) I call it like http://localhost:8080/myobject/setObjectOwner?username=foo and get this error: Zope Error Zope has encountered an error while publishing this resource. Error Type: AttributeError Error Value: aq_inner Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /usr/home/magnus/www/Zope-2.3.2-src/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/home/magnus/www/Zope-2.3.2-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/home/magnus/www/Zope-2.3.2-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: PLATS_1) File /usr/home/magnus/www/Zope-2.3.2-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/home/magnus/www/Zope-2.3.2-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: setObjectOwner) File /usr/home/magnus/www/Zope-2.3.2-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: setObjectOwner) File /usr/home/magnus/www/Zope-2.3.2-src/lib/python/Products/ExternalMethod/Exter nalMethod.py, line 262, in __call__ (Object: setObjectOwner) (Info: ((, 'david'), {}, None)) File /usr/home/magnus/www/Zope-2.3.2-src/Extensions/Owner.py, line 2, in setObjectOwner (Object: PLATS_1) File /usr/home/magnus/www/Zope-2.3.2-src/lib/python/AccessControl/Owned.py, line 168, in changeOwnership (Object: PLATS_1) File /usr/home/magnus/www/Zope-2.3.2-src/lib/python/AccessControl/Owned.py, line 302, in ownerInfo AttributeError: (see above) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: Subject: [Zope-dev] change ownership
I can get it to work :-/ I get an attributeerror on aq_inner in lib/python/AccessControl/Owned.py, line 302, in ownerInfo Seems as if the user i provide isn't of the right type? How do you use your method? How is it being called? /Magnus > Magnus, > No, changeOwnership is not exposed for TTW calling. But you > can expose it > through an external method... I used this one on a ZClass. > > def set_owner(self, user): > self.changeOwnership(user) > return ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] change ownership
Is it not possible to change ownership of an object? I can only find methods to take ownership... /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Threads...
Hi. I want to start a thread from my product. I'm doing it in the same way as the code below. Label is set to 'a' as default. If I change this to 'b' and save, Label is changed to contain 'b'. But, it seems as if Label is loaded with the saved value at some later point than the last row below, because Label always contains 'a' at that point. So the question is; Where should I start the thread? When are the saved properties loaded? class FooBar(SimpleItem, PropertyManager): """ """ meta_type = 'FooBar' _properties = ( {'id':'Label', 'type':'selection', 'mode':'w', 'select_variable':'values'} ) values = ('a', 'b', 'c') Label = values[0] manage_options = ( {'label':'Edit', 'action':'manage_main'}, )+PropertyManager.manage_options+\ SimpleItem.manage_options # Create a SecurityInfo to define security # assertions later on security = ClassSecurityInfo() _v_fooThread = FooThread.FooThread(Label) _v_fooThread.start() /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: [Zope-dev] manage_tabs
Title: RE: [Zope-dev] manage_tabs Ok, I get it. Sorry :-P security.declareProtected('View management screens', 'manage')manage_editForm = DTMLFile('dtml/editForm', globals()) security.declareProtected('View management screens', 'manage')manage_main = manage_editForm And it works... Maybe I shold do some more reading about it on http://www.zope.org/Documentation/ZDG Thanks! /Magnus Could this be an "Internet Explorer failing to pass the AUTH info" problem? It sounds as though you are getting access to the edit tab via Anonymous permissions (Have you restricted access to the manage_main method using the __permissions__ settings)? In that case, Zope will not show you the other tabs because the Anonymous User is not allow to see them.
SV: [Zope-dev] manage_tabs
Title: RE: [Zope-dev] manage_tabs Well, right now I'm doing it like this... security = ClassSecurityInfo() security.declarePublic('manage_editForm')manage_editForm = DTMLFile('dtml/editForm', globals()) security.declarePublic('manage_main')manage_main = manage_editForm Browser doesn't change anything. /Magnus Could this be an "Internet Explorer failing to pass the AUTH info" problem? It sounds as though you are getting access to the edit tab via Anonymous permissions (Have you restricted access to the manage_main method using the __permissions__ settings)? In that case, Zope will not show you the other tabs because the Anonymous User is not allow to see them. (Does it show that this one got me too???) What version of which browser are you using? Adrian... -- Adrian Hungate Manager, European I.S. Acucorp UK Limited -Original Message- From: Magnus Heino (Rivermen) [mailto:[EMAIL PROTECTED]] Sent: Friday, 04 May 2001 13:09 To: '[EMAIL PROTECTED]' Subject: [Zope-dev] manage_tabs Hi. In my Zope product, I've got this; manage_options = SimpleItem.manage_options+( {'label':'Edit', 'action':'manage_main'}, ) If I view the management sceen of this product, I get four tabs (Undo, Ownership, Security and Edit). But If I click on "Edit", all tabs but the edit tab is removed. Why? My "Edit" dtml looks like this; This is the edit form. Thanks, /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] manage_tabs
Hi. In my Zope product, I've got this; manage_options = SimpleItem.manage_options+( {'label':'Edit', 'action':'manage_main'}, ) If I view the management sceen of this product, I get four tabs (Undo, Ownership, Security and Edit). But If I click on "Edit", all tabs but the edit tab is removed. Why? My "Edit" dtml looks like this; This is the edit form. Thanks, /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: [Zope-dev] CoreSessionTracking
> In the meantime, use the .set method of the session data > object, e.g. in the > onStart function: > > sdo.set('Username', 'Foobar') > > .. or use an external method. Ok, works now. Thanks. How to I access things like the DTML AUTHENTICATED_USER.getUserName() from a python script? /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: [Zope-dev] CoreSessionTracking
This onStart method... sdo['date'] = context.ZopeTime() ...gives this error: -- 2001-04-23T14:36:32 PROBLEM(100) Session Tracking session event failed The call to function onStart failed. Traceback: Traceback (innermost last): File /usr/home/magnus/www/Zope-2.3.1-src/lib/python/Products/CoreSessionTracking/ SessionDataManager.py, line 451, in __call__ (Object: ) File /usr/home/magnus/www/Zope-2.3.1-src/lib/python/Shared/DC/Scripts/Bindings.py , line 324, in __call__ (Object: onStart) File /usr/home/magnus/www/Zope-2.3.1-src/lib/python/Shared/DC/Scripts/Bindings.py , line 354, in _bindAndExec (Object: onStart) File /usr/home/magnus/www/Zope-2.3.1-src/lib/python/Products/PythonScripts/Python Script.py, line 336, in _exec (Object: onStart) (Info: ({'script': , 'context': , 'container': , 'traverse_subpath': []}, ({},), {}, None)) File Script (Python), line 2, in onStart File /usr/home/magnus/www/Zope-2.3.1-src/lib/python/Products/PythonScripts/zbytec odehacks/VSExec.py, line 430, in __setitem__ TypeError: object does not support item assignment ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
SV: [Zope-dev] CoreSessionTracking
> The onStart method will be called when a session data object > is created. > Neither of the calls you show here create a session data > object. Something > like "Session.getSessionData()" would, however. Ah. I read "when a session starts, you may call an external method or PythonScrip" and thought that the session started when I received a new token... Thanks! /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] CoreSessionTracking
Is onStart and onEnd broken in the CoreSessionTracking (0.8) product? (Or am I broken? :-)) I have a folder /Radio Within that folder I have a "Session ID Manager" and a "Session Data Manager" named Session. "Session onStart method path" of the "Session ID Manager" is set to /Radio/onStart I have an external method /Radio/onStart that does work if called standalone, from zLOG import LOG, WARNING def onStart(sdo): LOG('session started', WARNING, 'session started') but it never gets called when I call my index_html; Token is new. Token is not new. Ths index_html method does return 'Token is new', but no onStart method is being called. What am I missing??? I have read the helpfile over and over again, but it still doesn't work. ? /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] filter metatypes in objectmanager
How can I control what meta_type's that can be added to an ObjectManager? If you create a ZClass that inherits from ObjectManager, you can specify this, but how is it done from a python product? /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Product Tutorial
Hi. Is http://www.zope.org/Members/hathawsh/PythonProductTutorial/index_html?pp=1 still valid, or have things changed since it was written? /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] ANNOUNCE: PartitionedFileStorage
> But like I told ChrisW, I think BerkeleyStorage will fill the > need that > PartitionedFileStorage was only partitially addressing. How is the new BerkeleyStorage product coming along? /Magnus ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] A groupware package for zope
> For the last couple of months I've been working on a groupware > package for Zope, named ZopeGUM. It has reached version > 0.1.63 now, and it's in steady progress. > > All the planned components, like messenger, address book, > calendar, todos, etc. are there and working now; though > it's definently not ready for a production enviroment yet. > > Anyways, just wanted to let you all know. (And yes, I > do appreciate feedback. =) I'd appreciate to be able to download some code from zope.org :-) /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Loginmanager and LDAP
Hi. I'd like to authenticate users using LDAP and Active Directory. Zope is running on a RH7.0 box. Has anyone done this, is it possible? /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZODB storage options
Hi.. I am writing an application using ZODB in which I dont need versions and undos. Should I change from FileStorage to something else? If so, what storage should I choose? Small size is more important than speed in this case. /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZODB, Threads and Persistence
> AFAIK, you should be able to spawn a new thread from within any function > within Zope and manipulate stuff in the ZODB as long as you lock properly. I guess I wasn't clear enough, but my application isnt within zope, im just using zodb and some more components out of it. > Specifically, an object may be "ghosted" if it hasn't been accessed in a > while. That doesn't mean its state goes away, it just means that it needs > to reload its state when it's accessed again. Your manipulation of the > object in a separate thread should prevent the object from being ghosted. But I guess this still will be the same anyway. That is, if an object inhereted from Persistence.Persistance spawns a thread that manipulated data in the object, I will have no problems. The thread will be running just fine, and the data will be stored in the zodb. ? /Magnus > > - Original Message - > From: "Magnus Heino (Rivermen)" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, November 10, 2000 10:35 AM > Subject: [Zope-dev] ZODB, Threads and Persistence > > > > > > Hi. > > > > Reading from Jims 'Introduction to the Zope Database': > > > > "An object's state may be freed at any time by the ZODB to conserve memory > > usage." > > > > What does this mean? That the object can be freed even though there are > > references to it? > > > > The reason I'm asking is becase I want to use threads and persistence > > together. > > > > I would like to inherit both threading.Thread and Persistence.Persistent, > > but that gives an error. I guess thats because of the ExtentionClass. > > > > However, if i only inherit Persistence.Persistent and starts a thread > using > > the thread module withing the persistent class, what will happen with it? > > Can the ZODB still decide to free my persistent object even thoght it has > a > > reference to a thread that is running?? > > > > Or can I start my thread when the object first is used, and rely on that > it > > will be running until I stop it or remove any reference to it? > > > > > > /Magnus > > > > > > _______ > > Zope-Dev maillist - [EMAIL PROTECTED] > > http://lists.zope.org/mailman/listinfo/zope-dev > > ** No cross posts or HTML encoding! ** > > (Related lists - > > http://lists.zope.org/mailman/listinfo/zope-announce > > http://lists.zope.org/mailman/listinfo/zope ) > > > > > -- /Magnus Heino ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZODB, Threads and Persistence
Hi. Reading from Jims 'Introduction to the Zope Database': "An object's state may be freed at any time by the ZODB to conserve memory usage." What does this mean? That the object can be freed even though there are references to it? The reason I'm asking is becase I want to use threads and persistence together. I would like to inherit both threading.Thread and Persistence.Persistent, but that gives an error. I guess thats because of the ExtentionClass. However, if i only inherit Persistence.Persistent and starts a thread using the thread module withing the persistent class, what will happen with it? Can the ZODB still decide to free my persistent object even thoght it has a reference to a thread that is running?? Or can I start my thread when the object first is used, and rely on that it will be running until I stop it or remove any reference to it? /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Compile zope with kgcc instead of gcc
How do I compile Zope with kgcc instead of gcc? (Yes, I need to do this since I am using RH7.0 where LONG_BIT is defined the wrong value). /Magnus ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] soap and zope
Has anyone done anything with soap and zope? /Magnus Heino ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )