Re: [Zope-dev] We need to change how code ownership works.
On 20.08.2012 12:10, Charlie Clark wrote: Am 20.08.2012, 11:09 Uhr, schrieb Lennart Regebro rege...@gmail.com: Such as? As previously noted: the TC's in particular the indemnification clause. Plus, the usual when dealing with an apparently free service provided by a company beholden to VC's. There are lots of very famous os projects hostet on github - which - without any doubt raises the reputation of github itself. https://github.com/popular/starred i doubt that github i willing to get into the doghouse by doing really nasty things - and thus getting into risk of loosing projects. lots of you also use gmail, g+ or other stuff, where i have more concerns about abuse than at github... even the linux kernel guys seem to prefer the benefits of github. https://github.com/torvalds/linux still, all your concerns are reasonable, but the claimed implications should stay lifelike. Robert Charlie -- Robert Niederreiter Squarewave Computing Aflingerstraße 19 A-6176 Völs Tel: +43 699 160 20 192 Web: http://www.squarewave.at ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] We need to change how code ownership works.
On 20.08.2012 12:39, Charlie Clark wrote: Am 20.08.2012, 12:27 Uhr, schrieb Robert Niederreiter r...@squarewave.at: There are lots of very famous os projects hostet on github - which - without any doubt raises the reputation of github itself. ah, the common cold defence: everyone has it so it must be good. no, just a manner of chance. and even if, git is not proprietary. https://github.com/popular/starred i doubt that github i willing to get into the doghouse by doing really nasty things - and thus getting into risk of loosing projects. This is pure speculation, or are you privy to board decisions at Github. see above, git is not proprietary. nobody is trapped inside github at all if nasty things happen. lots of you also use gmail, g+ or other stuff, where i have more concerns about abuse than at github... This irrelevant in the context of ownership and copyright. you came up with concerns against VC's. So in which context was this meant then? -Robert Charlie -- Robert Niederreiter Squarewave Computing Aflingerstraße 19 A-6176 Völs Tel: +43 699 160 20 192 Web: http://www.squarewave.at ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] We need to change how code ownership works.
On 20.08.2012 12:49, Wichert Akkerman wrote: On 08/20/2012 12:39 PM, Charlie Clark wrote: Am 20.08.2012, 12:27 Uhr, schrieb Robert Niederreiter r...@squarewave.at: even the linux kernel guys seem to prefer the benefits of github. https://github.com/torvalds/linux Yes, promotional materials would have nothing to do with the commercial nature of the service. Not that I'm against a commercial service provider. In this case also untrue as far as I know: Linus only setup a mirror on github to have some way to publish a git tree after the kernel.org comprise. He was also very explicit about not willing to use any github features. See my presious mail, i already revised this. Wichert. ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Robert Niederreiter Squarewave Computing Aflingerstraße 19 A-6176 Völs Tel: +43 699 160 20 192 Web: http://www.squarewave.at ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] We need to change how code ownership works.
On 20.08.2012 12:39, Charlie Clark wrote: I raised a specific objection: that the onus is on anyone with a Github account to demonstrate their code does not violate any patents in the case of a claim feels like a pretty real threat to me. i agree. but even here i wonder whats the difference if someone claims copyright on code which was committed at github vs. code which was committed somewhere else. Again, as Jens has repeatedly said we should not conflate the separate items of toolchain and service provider. Zope Foundation has hardware and a proven track record in hosting. Is anyone actually criticising this? No. -Robert Charlie -- Robert Niederreiter Squarewave Computing Aflingerstraße 19 A-6176 Völs Tel: +43 699 160 20 192 Web: http://www.squarewave.at ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] [Checkins] SVN: zc.buildout/ Moved to github
On 19.08.2012 10:30, Jens Vagelpohl wrote: On Aug 19, 2012, at 10:17 , Lennart Regebro rege...@gmail.com wrote: And since it becomes ever easier to accept code from unknown sources (e.g. pull requests) legal code ownership becomes an issue again. And that returns me to my first question: Is it really legally different for a contributor to accept a pull request from a non-contributor compared with a contributor merging a patch from a non-contributor? Legally, both are disallowed unless there's some proof (written statement etc) from the code author that he assigns ownership of the patch or the contents of that pull request to the contributor who is doing the checkin. In the past we haven't done a good job of enforcing this clear ownership assignment chain. There are always code patches from non-contributors in the bug tracker that may make it into the code base with the help of a contributor. There's a grey area: Is the act of submitting a patch into the Zope bug tracker enough to signal I am giving you ownership of this code? I am not sure. GitHub makes this pulling in of outside code even easier. I'm afraid it will become even harder to really maintain this chain of custody. I just wonder why this works then for other projects like plone or pyramid which basically follows similar rules as the ZF with a signed contributor agreement required in order to make core contributions. http://plone.org/foundation/contributors-agreement/agreement.pdf/view https://github.com/Pylons/pyramid/blob/master/CONTRIBUTORS.txt btw - pyramid seem to have a very pragmatic approach for the signing process ;) Either way - SVN or GIT - it is just a question IF merging code from a non-contributor is done BY a contributor, not HOW. For me the discussion sounds a little like a general denial against github using the legal story as rationale. robert jens ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Robert Niederreiter Squarewave Computing Aflingerstraße 19 A-6176 Völs Tel: +43 699 160 20 192 Web: http://www.squarewave.at ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] [Checkins] SVN: zc.buildout/ Moved to github
On 19.08.2012 12:16, Jens Vagelpohl wrote: On Aug 19, 2012, at 10:55 , Robert Niederreiter r...@squarewave.at wrote: https://github.com/Pylons/pyramid/blob/master/CONTRIBUTORS.txt btw - pyramid seem to have a very pragmatic approach for the signing process ;) An approach I doubt will hold up in a court of law. We require and have wet signatures, which makes me feel a lot more on the safe side. Thats fine to everyone i think. Referring to github this would require to give write access only to people who have signed the agreement. Either way - SVN or GIT - it is just a question IF merging code from a non-contributor is done BY a contributor, not HOW. Done by a contributor with some clear gesture from the non-contributor that code ownership is going into the hands of that contributor. How does this 'clear gesture' from the non-contributor look like right now? A patch attached to an email or a bug report? As Lennard pointed out, how does this differ from a pull request attached to a repository? For me the discussion sounds a little like a general denial against github using the legal story as rationale. Speaking for myself as ZF representative, it is my duty to make sure that chain of custody for the code is upheld and safeguarded. Convenience, which I feel is driving the move towards GitHub, is nice to have. But I would not do my job if I didn't make extra-sure that any move for Zope Foundation code did not fulfil all legal requirements before spending much thought on convenience. Also perfectly fine. Maybe it's anyway a good idea to find a process enabling contributors going to github with ZF code. robert jens ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Robert Niederreiter Squarewave Computing Aflingerstraße 19 A-6176 Völs Tel: +43 699 160 20 192 Web: http://www.squarewave.at ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] We need to change how code ownership works.
On 19.08.2012 13:01, Lennart Regebro wrote: On Sun, Aug 19, 2012 at 10:30 AM, Jens Vagelpohl j...@dataflake.org wrote: On Aug 19, 2012, at 10:17 , Lennart Regebro rege...@gmail.com wrote: And since it becomes ever easier to accept code from unknown sources (e.g. pull requests) legal code ownership becomes an issue again. And that returns me to my first question: Is it really legally different for a contributor to accept a pull request from a non-contributor compared with a contributor merging a patch from a non-contributor? Legally, both are disallowed unless there's some proof (written statement etc) from the code author that he assigns ownership of the patch or the contents of that pull request to the contributor who is doing the checkin. In the past we haven't done a good job of enforcing this clear ownership assignment chain. There are always code patches from non-contributors in the bug tracker that may make it into the code base with the help of a contributor. There's a grey area: Is the act of submitting a patch into the Zope bug tracker enough to signal I am giving you ownership of this code? I am not sure. GitHub makes this pulling in of outside code even easier. I'm afraid it will become even harder to really maintain this chain of custody. This is then, IMO a problem that we should fix. What you are in fact saying is that the current system are violating people's copyright everytime we merge a non-contributors patch. It is unfeasible to not merge peoples patches, and I think it is also a big problem that the way the ownership of the code works now inhibits the increased simplicity of making and merging fixes for non-core contributors. In other words, we have had an ownership situation which is terrible, and nobody seems to have realized this until now. Well, now we know. As such, the discussion must now shift from don't do this to how do we do this. Poeple want to contribute and we should not say don't do that, we have to figure out *how* to make it possible to do that, and pretty pronto as well. Would it stand the law if there would be a written statement inside the relevant projects stating out that the ownership of code changes as soon as an outside patch gets applied? robert //Lennart ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Robert Niederreiter Squarewave Computing Aflingerstraße 19 A-6176 Völs Tel: +43 699 160 20 192 Web: http://www.squarewave.at ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Referring to same interface using zope.schema.Object
Hi, On 22.07.2011 12:59, Joe Steeve wrote: Hello, I am trying to construct an object tree. Take a look at http://pypi.python.org/pypi/node This is probably what you need. Regards, Robert Every node in the tree is of the same type. I am trying to achieve something like: class INode(Interface): parent = Object( title=uParent node, schema=INode ) children = List( title=u'Child nodes', value_type=Object(schema=INode) ) The above fails with NameError: name 'INode' is not defined. Any clues as to how to solve this? Regards, Joe ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope ) -- Robert Niederreiter Squarewave Computing Aflingerstraße 19 A-6176 Völs Tel: +43 699 160 20 192 Web: http://www.squarewave.at ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Configurable Blob Permissions ZODB
Hi, Refering to this bug report https://bugs.launchpad.net/zodb/+bug/683751 And this usecases http://stackoverflow.com/questions/6168566/collective-xsendfile-zodb-blobs-and-unix-file-permissions It would be great if create mode of blobs would be configurable in ZODB directly. For UNIX Systems there could be 2 flags for folder creation mode and blob file permissions, i.e. BLOB_FOLDER_MODE = 750 BLOB_FILE_PERMISSIONS = stat.S_IRUSR | stat.S_IRGRP which are used then at the appropriate places. See here: http://pastebin.com/wNLYyXvw I don't know how this refers to NTFS, though. Further this configuration flags should be available in ZOPE and ZEO Server configuration files. Any doubts, suggestions, other ideas? Regards, Robert -- Robert Niederreiter Squarewave Computing Aflingerstraße 19 A-6176 Völs Tel: +43 699 160 20 192 Web: http://www.squarewave.at ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Configurable Blob Permissions ZODB
Am Freitag, den 17.06.2011, 08:06 -0400 schrieb Jim Fulton: Any doubts, suggestions, other ideas? -1 for a new configuration option. I would rather just have write permission *only* removed from committed blob files. Read permissions should be controlled by existing mechanisms such as umask. So changing the creation mode for folders to 755 and for blobs to 444 would be the solution then. right? Has this a chance to get into the next ZODB release? Robert Jim -- Robert Niederreiter Squarewave Computing Aflingerstraße 19 A-6176 Völs Tel: +43 699 160 20 192 Web: http://www.squarewave.at ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] plone 4.1: can not access plone 3.5 site after startup
Hi there, I created a 4.1a3 buildout and added all needed products, of which I had to adapt some to be able to start at all. Then I copied the data.fs of a 3.5x site. Now in the ZMI, when I want to navigate to the plone 3.5 folder I get the following error: What can I do to fix that? Do I have to prepare the Data.fs somehow? thanks robert 2011-03-02 11:57:55 ERROR Zope.SiteErrorLog 1299063475.730.425785426825 http://localhost:8481/focus/focus Traceback (innermost last): Module ZPublisher.Publish, line 115, in publish Module ZPublisher.BaseRequest, line 437, in traverse Module ZPublisher.BeforeTraverse, line 97, in __call__ Module Products.CMFCore.PortalObject, line 78, in __before_publishing_traverse__ Module zope.event, line 23, in notify Module zope.component.event, line 24, in dispatch Module zope.component._api, line 136, in subscribers Module zope.component.registry, line 321, in subscribers Module zope.interface.adapter, line 585, in subscribers Module zope.component.event, line 32, in objectEventNotify Module zope.component._api, line 136, in subscribers Module zope.component.registry, line 321, in subscribers Module zope.interface.adapter, line 585, in subscribers Module plone.browserlayer.layer, line 14, in mark_layer Module zope.component._api, line 179, in getAllUtilitiesRegisteredFor Module zope.component.registry, line 176, in getAllUtilitiesRegisteredFor Module ZODB.Connection, line 859, in setstate Module ZODB.Connection, line 913, in _setstate Module ZODB.serialize, line 613, in setGhostState Module zope.component.persistentregistry, line 40, in __setstate__ Module zope.interface.adapter, line 91, in _createLookup Module zope.interface.adapter, line 439, in __init__ Module zope.interface.adapter, line 476, in init_extendors Module zope.interface.adapter, line 480, in add_extendor AttributeError: type object 'IDatabaseSettings' has no attribute '__iro__' 2011-03-02 11:57:55 WARNING OFS.Uninstalled Could not import class 'IThemeSpecific' from module 'focus.theme.browser.interfaces' 2011-03-02 11:57:55 WARNING OFS.Uninstalled Could not import class 'IFocViewletManager' from module 'focus.theme.browser.interfaces' 2011-03-02 11:57:55 ERROR ZODB.Connection Couldn't load state for 0x19746b Traceback (most recent call last): File /home/zope/focus4/eggs/ZODB3-3.10.1-py2.6-linux-i686.egg/ZODB/Connection.py, line 859, in setstate self._setstate(obj) File /home/zope/focus4/eggs/ZODB3-3.10.1-py2.6-linux-i686.egg/ZODB/Connection.py, line 913, in _setstate self._reader.setGhostState(obj, p) File /home/zope/focus4/eggs/ZODB3-3.10.1-py2.6-linux-i686.egg/ZODB/serialize.py, line 613, in setGhostState obj.__setstate__(state) File /home/zope/focus4/eggs/zope.component-3.10.0-py2.6.egg/zope/component/persistentregistry.py, line 40, in __setstate__ self._createLookup() File /home/zope/focus4/eggs/zope.interface-3.6.1-py2.6-linux-i686.egg/zope/interface/adapter.py, line 91, in _createLookup self._v_lookup = self.LookupClass(self) File /home/zope/focus4/eggs/zope.interface-3.6.1-py2.6-linux-i686.egg/zope/interface/adapter.py, line 439, in __init__ self.init_extendors() File /home/zope/focus4/eggs/zope.interface-3.6.1-py2.6-linux-i686.egg/zope/interface/adapter.py, line 476, in init_extendors self.add_extendor(p) File /home/zope/focus4/eggs/zope.interface-3.6.1-py2.6-linux-i686.egg/zope/interface/adapter.py, line 480, in add_extendor for i in provided.__iro__: AttributeError: type object 'IDatabaseSettings' has no attribute '__iro__' ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] zc.recipe.cmmi sticked to version 1.5.0b1 of zc.buildout dependency
Hi Folks, Why does recent zc.recipe.cmmi sticks hardcoded to version 1.5.0b1 of zc.buildout in setup.py? Regards Robert ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7
Hi Chris, On 08/31/2010 11:40 AM, Chris Withers wrote: After a recent upgraded to Zope 2.12, I'm now seeing errors like the following when using IE (version 8) or Safari (version 4.0.3) to view page templates. Chrome and Firefox work fine. This may be related to IE and Safari not sending an accept-charset header and Zope then falling back to the Python default (often ASCII) for encoding, which then fails. I use the following patch to http.py (tested up to 2.12.3): --- lib/python/zope/publisher/http.py.orig 2009-05-02 00:49:35.0 -0700 +++ lib/python/zope/publisher/http.py 2009-06-12 02:12:50.0 -0700 @@ -965,8 +965,11 @@ # value of 1 if not explicitly mentioned. # And quoting RFC 2616, $14.2: If no Accept-Charset header is # present, the default is that any character set is acceptable. -if not sawstar and not sawiso88591 and header_present: +# ROC: the following checked also for header_present which seemed wrong +if not sawstar and not sawiso88591: charsets.append((1.0, 'iso-8859-1')) +# ROC: if there is no header we assume star (to get utf-8) +sawstar = 1 # UTF-8 is **always** preferred over anything else. # Reason: UTF-8 is not specific and can encode the entire unicode # range , unlike many other encodings. Since Zope can easily use very Best Robert ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Stepping back as Zope 2 release manager
many thanks for the tremendous work you have done. I always wondered how long your days must be .. robert ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] New Zope 3 name: BlueBream
Am 05.01.2010 08:13, schrieb Jan Ulrich Hasecke: Am 05.01.2010 um 00:43 schrieb Hermann Himmelbauer: Although I tend to give you right, as probably no one will get the fish connection and therefore a new name has to be raised up, I vote for BlueBream, as this indicates something very new, which frees itself from those endless Zope 3, Zope 3 Application Server, Zope blah blah... considerations. And getting an endless discussion about Zope, Zope Toolkit, Zope 2, Grok, Bluebream, repoze.bfg … I am just creating a German broschure about Zope and we are relaunching zope.de these days, and I can tell you it is hell to explain what Zope is. What's in a name? I don't mind having a name for a reborn Zope 3 and Bluebream might be ok. But we must keep an eye on our trademark Zope. What is Zope if we have - Zope Toolkit - Zope 2 - Grok - Bluebream - BFG Seems that there is no Zope anymore. ;-) juh I agree, we have two names that ar known to a wider audience: Zope and Plone. all the other items bear so little market value that even an insider can not place them. Therefore I think either of the two should be part of any new packages name meant to be recognized by non Zope affectionados. Bluebream for Zope BlueZope Bluebream gone Zope what ever robert ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Subversion externals versus mirroring
Martijn Faassen schrieb: Hi there, Christian Theune wrote: a long-standing issue with our mirror of svn.zope.org are the absolute URLs of externals: they require the repository to be available on a given URL. I propose to use relative URLs for externals. I guess a complete update isn't necessary, but I'd like to improve the situation and start using them from now on. Maybe we should also put a commit hook in place as a safety belt? However, this requires Subversion 1.5 which we are using on the server already, but I don't know whether we assume clients are 1.5 or higher. I certainly still use a SVN 1.4.x client, being on Ubuntu 8.04 LTS (released just last year). I don't think SVN 1.5 is common enough yet to make such a move possible. you still can use 1.4 clients an a 1.5 server I think.. robert ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] RFC: Site - Locus
One reason Locus might be a bad word is because it's easily confused with Location, a concept we already have. an other one is that in german locus is often used for a place where you sit down and use paper to clean your back afterwards.. robert ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] ZTK futures: one big package?
chris you have *exactly* mirrored my feelings as a longtime zope2 user/application developer getting in touch with plone3/five. now after a year digging in it I still am not free of it thanks a lot robert Chris McDonough schrieb: I realize now that I've neglected to give sufficient reasoning for why less granular packaging would be a good thing. I've noticed that there's a common theme in Zope development, software, and packages that I can only describe as power law development or turtles all the way down. It's a bit of an antipattern, unfortunately. I'll provide an example by way of Zope-3-the-appserver. In an application that uses Zope-3-the-appserver, many individual subframeworks will be used. For example, there is a traversal subframework, a security subframework, a cataloging subframework, and so on. Each of these subframeworks acts as a logical unit, and through the magic of the component architecture, each can be replaced wholesale by registering some adapter. However, each of these subframeworks tend to also have settings that can be configured. For example, individual traversal steps for certain types of objects can be overridden by registering an adapter that *configures* the subframework. In the case of Zope 3, we have a traversal situation where the larger traversal subframework can either be replaced wholesale via an adapter registration or extended piecemeal via other adapter registrations. The problem is that the mechanism to *replace* the subframework is the same as the mechanism to *configure* it (both are done via adapter registration, sometimes even in the same file). This is theoretically fine. But in reality, it's tremendously hard for someone just walking up to a complex system like Zope 3 to discern adapter registrations that replace subsystems from those which merely configure subsystems. An inability to discern the difference leads to situations where people just don't get the joke and try to wiggle wires to configure-to-death a existing subsystem that's clearly suboptimal for their use case instead of just replacing it wholesale with a much simpler custom policy. They just don't know it was engineered to be replaced. So they keep adding more configuration code to the existing subframework to handle various 1% edge cases. Often this code makes the subframework tremendously complex, and the subframework grows inappropriate dependencies along the way. *Sometimes* the situation gets so confusing for a new user, they just quit and go use something else. This is a pattern that happens over and over again in Zope development. In my personal opinion, the original error was trying to make the subframework configurable at all. Instead, the subframework should be replaceable easily, but it should itself be relatively rigid. At very least, for subframeworks that really do require extra configuration (should be very few), this configuration should be done via highly specialized ZCML directives (or grokkers), as opposed to some very general adapter registration that can't be easily discerned from other adapter registrations by a newbie. If the subframeworks were more rigid (but replaceable), the *intent* of the subframework author could be more easily discerned, and fewer people would fall into the trap of adding more configuration code to a subframework instead of just replacing it entirely. And fewer people would just walk away in frustration. What does this have to do with packaging? Well, currently, there's a dizzying number of packages that make up the ZTK (nee Zope 3). Each of these packages is a pure peer of all others in a PyPI listing with no real way to get a sense of their relative importance other than performing a linear audit. Even if a user *does* do a linear search of all of them, it's still awful hard to discern for some new user which ones are important, and which ones just happen to exist by some inequity of history without trying to install it. The user needs to gain some holistic knowledge of the system in order to discern the important bits from these historical inequities. Most new users understandably just walk away from *all* Zope packages before they gain this knowledge; it's just too hard for them to tell the difference between the truly important and reusable bits and the stuff that just happens to be packaged up and released but which is useless outside of some highly specific context. In effect, we just don't communicate *intent* very effectively in our current packaging structure. In my opinion, this is why a lot of Python developers who are otherwise very smart have given up on trying to use Zope packages. The time required to figure out which ones are useful and which ones aren't is just too high. It's way easier for them to write them all off
Re: [Zope-dev] ComputedAttribute Object
Sandrine Meyantchop schrieb: Hello, i want to know how i can convert a ComputedAttribute Object to a String. I have exactly the problem explain here: http://www.zope.org/Collectors/Ape/19 but i want to have a string in state of a ComputedAttribute Object. Any Ideas?? Sandra ___ Zope-Dev maillist - Zope-Dev@zope.org 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 ) str(object) ?? ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] ComputedAttribute Object
Sandrine Meyantchop schrieb: i have only try with str, but the problem is that i want to have for example the title but str(self.title) return ComputedAttribute object at 0xb7cdb8a0. self.title() ?? --- En date de : *Lun 27.4.09, robert rottermann /rob...@redcor.ch/* a écrit : De: robert rottermann rob...@redcor.ch Objet: Re: [Zope-dev] ComputedAttribute Object À: elsand...@yahoo.fr Cc: Zope-Dev@zope.org Date: Lundi 27 Avril 2009, 8h40 Sandrine Meyantchop schrieb: Hello, i want to know how i can convert a ComputedAttribute Object to a String. I have exactly the problem explain here: http://www.zope.org/Collectors/Ape/19 but i want to have a string in state of a ComputedAttribute Object. Any Ideas?? Sandra ___ Zope-Dev maillist - Zope-Dev@zope.org 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 ) str(object) ?? ___ Zope-Dev maillist - Zope-Dev@zope.org 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 maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] ComputedAttribute Object
I do not know try Title Title() ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] naming Zope
I see no reason at all to rename anything. remeber the days when there was dBase3. and then dBase4 came allong. technically better but never took off ? To the day things are either dBase or dBase3 compatible. A simmilar situation we have with Zope. Like dBase, Zope is a base technology. How its named is not (very) important. Nobody but techies will be interested. And they quickly will learn what the different bits in the tool-chest are used for. What ever they are named. robert Martijn Faassen schrieb: Hey, Okay, in the interests of making this discussion go quickly, there has been enough negative feedback about renaming Zope 2 to think we have no realistic chance of renaming it. We are still stuck with the following perceived sequence: Zope 2, Zope 3 which implies that people should want to upgrade. How to get out of that bind? We could consider renaming Zope 3. Is there any potential for this? I'll note that I don't think there's as much at risk here: Zope 2, Zope 3, Zope Framework. This isn't a progression that people want to upgrade to either, but it may give the wrong impression. If we don't call Zope Framework 4.0, we'll be fine. We should call its first release 1.0 and there's no implication of a progression. Regards, Martijn ___ Zope-Dev maillist - Zope-Dev@zope.org 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 maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Overhauling the Zope 2 presentation on zope.org
hi andreas, thank you very much for your efforts Concerning the look feel: unless someone volunteers for taking over the responsibility for providing a Plone theme, I will step forward trying to coordinate this with the design efforts that are currently in progress for the relaunch of www.zope.de. Assuming the consent of my colleagues (which I am sure to get) I would like to offer cooperation with design of the new site. such work should in any case be done on the base of what dzug is doing for the dzug site. I am sure we can take over responsibility at least during development. later things might be reassigned. robert ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] zope2docs
thanks a lot for the effort that has been put into the new zope documentation. I have a litte wish: the colors of the index (light green on whit) is uncomfortable to my eyes and hard to read. maybe this could be changed to a more contrasting combination? robert Andreas Jung schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In preparation for the upcoming Zope 2.12 release we reorganized the Zope 2 documentation: - - all related documentation is now maintained a restructured text document in SVN: svn+ssh://svn.zope.org/repos/main/zope2docs - - The Zope Book, The Zope Developers Guide and some ZODB articles have been converted from STX to ReST - - The Zope 2.12 doc folder has been restified and is included within the zope2docs folder through a svn:external - - The Zope 2 specific documentation including releases notes will be generated in the future using Sphinx from 'zope2docs2' and published on docs.zope.org Thanks to Hanno and Tres for reSTifying the Zope book and the ZDG. Andreas - -- ZOPYX Ltd. Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: i...@zopyx.com - Phone +49 - 7071 - 793376 Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535 Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK - E-Publishing, Python, Zope Plone development, Consulting -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkmgDVAACgkQCJIWIbr9KYyZMQCfShleZE5uqRL2f/UJvXxwkz8X QKoAmQHSNGC/mJMxxznzK79aAPidRc9k =Nw53 -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org 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 maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] zope.globalrequest?
Hi, Am Samstag, den 17.01.2009, 11:36 + schrieb Martin Aspeli: Dieter Maurer wrote: Christian Theune wrote at 2009-1-16 09:06 +0100: I noticed 'zope.globalrequest' on the PyPI RSS feed today and wonder about it. IMHO this implements an anti-pattern in an official way without a warning that this needs to be handled with care. IMHO, it is not an anti-pattern: We have a global site why should we not have a global request? When Zope is used as a Web Application Server, it is quite natural to expect a request. +1 +1 as well However, there is a definite risk with it as well of encouraging poor separation of concerns. If code is dependent on a request it's not re-usable outside the web container. For views or web app controllers, that's certainly fine, but if you're writing something more generic, then it may be better to have the discipline to pass objects around that properly abstract your data, rather than assume you can access the request willy-nilly. Isn't there always the risk that people design software the wrong way? This is a documentation issue, though. Martin Robert ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] zope.browser?
Hi, Am Freitag, den 12.12.2008, 05:06 +0100 schrieb Roger Ineichen: ... Let's keep this pending and discuss at a later time again. ok. please let me know when there's cleard space for features, regards, robert Regards Roger Ineichen ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] zope.browser?
Hi, Am Freitag, den 12.12.2008, 15:51 +0100 schrieb Christian Zagrodnick: On 2008-12-12 14:24:09 +0100, Martijn Faassen faas...@startifact.com said: Hey, Christian Zagrodnick wrote: [snip] That's good. One thing which is not good is that you deprecated the use of ITerms from zope.app.form. I'd just leave the reference/import there like we did with ISite in zope.app.component. Why is such a deprecation warning bad? Wouldn't this encourage people to update their code? A deprecation warning isn't bad. But I think we should not deprecate the use of ITerms from zope.app.form. I don't see a gain in this API change. Imo it's a bad idea to keep exactly the same interface in 2 places. At least i don't see an improvement or convenience in keeping it. the only real reason to keep it is for legacy reasons, but import adoption should not be that hard ;) regards, robert ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] zope.browser?
Hi, Am Donnerstag, den 11.12.2008, 17:13 +0100 schrieb Roger Ineichen: I just moved the zope.app.form.interfaces.ITerms interface to this package. Which makes it possible to implement ISource and their widgets in z3c.form wihtout to depend on zope.app.browser. (zagy branch in z3c.form) I didn't see any other (browser) interface which should go to this package because of real dependency problems yet. But sure if you see something which can solve problems, feel free to move interfaces, dependency less components or helper methods to this package. We have written browser helper tools in a package named cornerstone.browser. especially IRequestMixin here http://dev.plone.org/collective/browser/cornerstone.browser/trunk/cornerstone/browser/interfaces.py might be a candidate for this or such a component. We use it most of the time as mixin for browser views, content providers, menu items and everything else which has to deal with application state data, urls and queries. For IRequestMixin the implementation is almost finished (one function and some testing left - see base.py and base.txt if you're interested in), and for the pointed usecases there are convenience implementations. It would be great to see this or something like this in zope.browser package, dealing with request data and url's is almost every day's business and always more code than i could be. regards, robert I think everything which goes to zope.browser must take very care on dependencies. I guess one important rule should be, zope.browser should depend on anything. Probably an exception whould be zope.schema, zope.messageid. Any other ideas? Regards Roger Ineichen Regards. Martijn ___ Zope-Dev maillist - Zope-Dev@zope.org 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 maillist - Zope-Dev@zope.org 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 maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] zope.browser?
Am Donnerstag, den 11.12.2008, 18:18 +0100 schrieb Martijn Faassen: Hi there, Robert Niederreiter wrote: [snip] We have written browser helper tools in a package named cornerstone.browser. especially IRequestMixin here http://dev.plone.org/collective/browser/cornerstone.browser/trunk/cornerstone/browser/interfaces.py might be a candidate for this or such a component. While this is certainly an interesting package, I think the idea behind zope.browser is to keep dependencies to an absolute minimum. I'm not sure I see the point of just putting the *interface* IRequestMixin in zope.browser, and the implementation would almost certainly pull in more dependencies, right? It would be possible to strip the implementation dependencies down to zope.interface and zope.component if IAbsoluteUrl (iirc) is moved as well and the ICookiePrefix default implementation returns something static. (by the way, an interface called 'Mixin'? Isn't the mixin nature a property of a class, not an interface?) Yes ;), the naming is not the best choice. The intention was to hint the reader how an implementation of this interface is supposed to be used. I think we should be careful not to introduce more functionality into zope.browser right now that isn't moved from some other zope.* package. The goal after all, as I understand it, is to reduce installation dependencies. you queried ideas. right? regards, robert Regards, Martijn ___ Zope-Dev maillist - Zope-Dev@zope.org 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 ) -- Robert Niederreiter IT-Architecture Engineering Aflingerstraße 7 A-6176 Völs +43 699 160 20 192 +43 512 89 00 77 Squarewave Computing WEB APPLICATIONS, ZOPE, PLONE, HOSTING BlueDynamics Allianceproduction: concept, development, design http://squarewave.at consulting: analysis, coaching, training http://bluedynamics.com management: projects, process, community ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Request for comments: Devilstick persistence/storage
Hi, no news seem to be good news, let's do it this way then? robert Am Donnerstag, den 13.11.2008, 15:05 + schrieb Jens W. Klein: I would like to request comments on our idea how to use different storages for our new model-driven approch with the name Devilstick. You dont need to know devilstick or its ideas in depth to give valuable input. More it would helps us to get input from people knowing zopes persistency layer in depth. Devilstick is model driven framework to describe and manage data inside and outside ZODB. some more information at http://devilstickproject.net At Blackforest sprint in august we researched how the goal to support different storages than ZODB can be achieved. After first thinking about an own layer we got there the idea of using the usal persistence and transaction API of zope. IIRC it was a result of a conversation between Florian Friesdorf and Roger Ineichen and probably others. Today is the last day of Bolzano sprint. We researched a lot how it currently works with ZODB and discussed about how to use all this framework for devilstick. Our outcome is a document describing what we found and how we want to use all this. It follows here. for the devilstick-team Jens Klein = --- Introduction to Devilstick Storages --- This document describes the future. One of Devilsticks power is to support different storages than ZODB easily. The storage layer uses 100% zopes persistency implementation. At some entry point we enter the model driven world of devilstick: We hit 'Cage'. The Cage itself is not a data-access-object (DAO). But its the bridge to the otherstorage layer. Inside Devilstick DAOs are still persistent objects. They may still live in ZODB. But they can live complete outside if it is needed. They may live in SQL-databases, in LDAP, filesystem or fetched over a webservice. For more about DAOs and its API please read API.txt. Excursus: Zopes Persistence Framework - Classic zope objects are derived from 'persistence.Persistent'. Those objects are tracking themselfes for modifications. Once a modification is detected it joins it's data-manager to the current transaction-manager. All this happens in zope fully transparent. The data-manager is the key to the storage layer. Zope is designed to use different data-managers. Datamanagers are described well in 'transaction.interfaces.IDataManager'. They care about storing all data in a 2-phase commit. There is usally one data-manager for all modified object of one database. Transaction-manager collects all datamanagers (which are called resources inside the transaction-manager) with modifications. Once the transaction is committed the 2-phase commit is started: 1st 'tpc_begin' is called on each data-manager, 2nd the 'commit' is called for each, then 'tpc_vote' and finally 'tpc_finish'. After creation of a persistent object it has an attribute called '_p_jar' set to 'None'. _p_jar gets a datamanager set - almost magically - after it was added to a container. The datamanager taken there is copied over from the containers _p_jar attribute. Container and new object are marked as modifed and the datamanager joins the transaction. On commit both are written to the database. Devilstick persistency -- To provide other storages we alreay have a powerful framework: the persistent api and transaction api. Devilstick uses both. To use a different storage simply a new data-manager is needed. Anyway, for several uses-cases its fine to stay in the ZODB. Such a alternative datamanager might work different inside than the current ZODB one. Since we deal with SQL or LDAP we want to update a database with one query for several objects involved. So on commit we may need to look at the modified objects and build one sql-query from a bunch of modifications. Frameworks like SQLAlchemy may help us here for SQL and others are probably available for different use-cases. Entry-Points: Cages --- We need one point where the datamanager is switched to a different storage.A model is assigned and there the world of generic DAOs is entered. This entry point is called 'Cage'. A cage is still persistent in the ZODB and uses the zopes default data-manager. A cage has the root container DAO (which is a generic molecule DAO) set as an attribute. Here some example code how it looks like: cage = Cage() cage._p_jar None somezodbcontainer._p_jar Connection at ... somezodbcontainer['data'] = cage cage._p_jar Connection at ... cage._root None cage.model = 'examplemodel' cage._root Molecule
Re: [Zope-dev] Events and interfaces for different request types
On Wed, Sep 10, 2008 at 06:25:20PM -0200, Sidnei da Silva wrote: Hi all, More than once I've found myself on a situation where I needed to subscribe to a specific event but only if it happens through a specific request type. One problem with that is that commonly the request is not part of the event information. Another problem might be that the request type might not be properly flagged, but this is a different subject and applies mostly to Zope 2. Now, for solving this problem, I usually create a custom and more specialized event that includes the request as part of it's information. So, for example, I'm interested in IObjectModifiedEvent but only for IWebDAVRequest, then I create: class IObjectRequestModifiedEvent(IObjectModifiedEvent): request = Attribute(...) def subscriber(object, event): if IWebDAVRequest.isProvidedBy(event.request): # do something Now, I wonder if someone has any suggestion on how to simplify this further... -- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 I haven't tried this, but you might be able to send out an event on an additional channel in a general handler. Something like: def subscriber(object, event): notify(object, event, event.request) And you should be able to register event handlers for the 3 channels now. -- Robert pgputeu7jhKg3.pgp Description: PGP signature ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] configuring global utilities in zcml
Hi, Am Dienstag, den 05.08.2008, 11:43 +0100 schrieb Chris Withers: Nikolay Kim wrote: I'm aware of this but it kind of defeats the idea of seperating code and configuration... So, other ideas? create new zcml directive. That seems pretty heavyweight :-/ disagree, that sounds quite zopeish robert Chris ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Solved!, was: Re: Escaping special characters in ZCTextIndex.QueryParser?
mustapha wrote: Robert Casties wrote: Enclosing the words with double quotes has not helped, neither have backslashes... You have to enclose your string with double quotes and then with single quote. So the parser gets the double quotes with the search string The parser does not interpret the string between double quotes. Ok, it was my fault :-( The query parser does not interpret expressions in double quotes, it was my special splitter that got called from the QueryParser (I didn't know that the QueryParser does that) that split and deleted all parentheses before the actual search. Now I have changed my splitter and it works as expected. Thanks a lot Robert ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Re: Escaping special characters in ZCTextIndex.QueryParser?
Dieter Maurer wrote: Robert Casties wrote at 2007-11-25 19:32 +0100: is it possible to escape parentheses in ZCTextIndex searches? If not, why not and how can I do a simple search in an index bypassing the QueryParser? I fear nobody of us knows this. Therefore, you must yourself look at the sources. I had a quick look at the QueryParser source before but it wasn't obvious to me. I will have a deeper look again. If you need this feature and ZCTextIndex does not provide it, then you may use a different text index. I know that with TextIndexNG3 you can select different parsers (among others a parser that does not interpret '(' and ')') or provide your own one. Is the parser for the search query also pluggable? I will have another look at TextIndexNG. I have an index where words can contain parentheses and I am unable to enter a query for these words because the QueryParser interprets all parentheses as search expression groupings. Then, you will need to change the lexicon as well. Usually, the lexicon breaks words at non alnum characters (with a few exeptions). I have my own splitter for the Lexicon so I think the right words are in the index but I haven't been able to check because I can't search the index... Thanks Robert ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Escaping special characters in ZCTextIndex.QueryParser?
Hi, is it possible to escape parentheses in ZCTextIndex searches? If not, why not and how can I do a simple search in an index bypassing the QueryParser? I have an index where words can contain parentheses and I am unable to enter a query for these words because the QueryParser interprets all parentheses as search expression groupings. Enclosing the words with double quotes has not helped, neither have backslashes... Is there a way other than having to write a new ZCTextIndex? Thanks for any insight Robert ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] SOAP support?
Andreas Jung wrote: Hi, I think it would be time to support SOAP out-of-the-box in some way in Zope 2. XMLRPC is still a useful functionality but the whole world speak of web-services and Zope should support building web-services at least on the SOAP level. I am sure that would bring back some more attention to Zope as application-server. There are several SOAP related products available on zope.org. Does anyone know about their functionality, pros cons? I know that there is also some SOAP support available for Plone/Archetypes (I think written by Benjamin Saller). i like the idea ver much, we have been doing a number of projects that needed SOAP connectivity. we always used pythons HTTP/URL-libs to connect to the services. therefore I can not comment available Zope/Plone based tools. Using SOAP implementing these project not only might have been more straight forward but would have left the client (even) more confident to have chosen the right tool. robert begin:vcard fn:robert rottermann n:rottermann;robert email;internet:[EMAIL PROTECTED] tel;work:031 333 10 20 tel;fax:031 333 10 23 tel;home:031 333 36 03 x-mozilla-html:FALSE version:2.1 end:vcard ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Zope 2.8.6 and 2.9.1 schedule
Andreas Jung wrote: --On 23. Januar 2006 21:37:10 +0100 Andreas Jung [EMAIL PROTECTED] wrote: I am plan to release Zope 2.8.6 and 2.9.1 in the middle of February (around Feb, 15th). Unfortunately I am currently too busy to do any releases right now. There are also some bug reports pending that should at least be checked before the next releases. I think I will have some time at or or after PyCon to care about the release. Andreas ___ Zope-Dev maillist - Zope-Dev@zope.org 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 ) Andreas, could you please add a fix for http://www.zope.org/Collectors/Zope/1819 it is absolutely trivial and needs no testing (there is a stale parameter final on line 49 of Products/ZODBMountPoint/MountedObject.py) thanks robert begin:vcard fn:robert rottermann n:rottermann;robert email;internet:[EMAIL PROTECTED] tel;work:031 333 10 20 tel;fax:031 333 10 23 tel;home:031 333 36 03 x-mozilla-html:FALSE version:2.1 end:vcard ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Re: [RfC] Removal of old stuff in Zope 2.10
Rocky Burt wrote: Max M wrote: If there is another practical way to do it, that would be fine too. I don't know about sqllite. But if it's more difficulte than dropping a package into a directory it would be bad. Personally I'd be a huge proponent of including SQLite in zope core. It is extraordinarilly functional and has few requirements. I particularly like using it to ensure unit tests against RDBMS connections work properly. Requiring a user to install postgresql just to run the unit tests of a product is somewhat unfeasible. - Rocky I would like that. Whenever giving a Zope/Plone class I end up using gadfly since this is the only db every one attending can use. As gadfly is very limited, it would be great to have something a bit more powerful. I would like to help making this possible. Robert ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Re: [RfC] Removal of old stuff in Zope 2.10
Andreas Jung wrote: --On 22. Dezember 2005 12:32:07 +0100 Tino Wildenhain [EMAIL PROTECTED] wrote: I dont think we should inlcude more 3rd party products into zope core unless they are required for core funtionality. And a random database adaptor isnt really core functionality. Another point: with Zope 2.10 we want to replace more and more duplicate code from the Zope 2 core with Zope 3 code. Since out-of-the-box RDBMS functionality might be off interest for the Zope 3 community it should be part of the Zope 3 (to be re-used within Zope 2). I think that would be the way to go if there is consensus about the necessity for having Sqlite in Zope 2/3 (the license issue is still an open point). -aj I perfectly agree with both of these arguments. However having a dead easy to use RDBMS tool is very convenient. Both for teaching and marketing purposes. Robert ___ Zope-Dev maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Modifying a ZPT state based on a certain parameter
Mike, this is not a task for zpt but for a python script. I would suggest you write a script that gets all courses with a given db-state and check them to be in the corresponding workflow state. If not change the workflow state. this script you call regularly (daily, hourly, when ever the db has changed ..) Robert Takahashi, Michael wrote: Hi guys, I am running on Zope 2.7.6 with Plone 2.0.5. I am currently building a dynamic application using MySQL as the backend database. I'd like to be able to change a ZPT's state based on a parameter passed by the db. For example, I have a ZPT that displays information for a particular course. However, if this courses active field is set to NO, then I would like to be able to have the ZPT's state be visible. If the courses active field is set to yes then I would like to modify the state so that the ZPT is published. I'm thinking I'd probably have to use the wf_tool in conjunction with portal_workflow? A call similar to something like so: tal:condition=python:records.active=='yes' ...then implement the necessary call to modify the workflow and make the ZPT published and vice versa. Any help is greatly appreciated. Thanks, Mike ___ Zope-Dev maillist - Zope-Dev@zope.org 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 maillist - Zope-Dev@zope.org 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 )
Re: [Zope-dev] Clarification re: Zope X3.1, 2.8
Andreas, thanks for your efforts Robert ___ Zope-Dev maillist - Zope-Dev@zope.org 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] Re: [Zope-CMF] opaque items, events
Florent Guillaume wrote: Directing to Zope-dev as this is not CMF-specific. On 7 Dec 2004, at 6:25, Robert Rottermann wrote: The methods that need to send events are: manage_afterAdd manage_beforeDelete (both in various classes) move_object_to_position (would be moveObjectsByDelta for straight Zope) manage_renameObject manage_pasteObjects manage_clone We also need a manage_editObject (or similar) event to react on objects being edited. Yes but I'm talking about existing points where hooks are needed. But indeed the semantics for edit events have to be devised. In the context of CMF we have a central point (reindexObject) that mostly does it. Yes I konw and use it. The problem that when more than one product wants to use it, the outcome is not well defined. Robert ___ 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 )
Re: [Zope-dev] [Zope Enhancement Proposal] Sanitizing local roles
Thanks for your answer, Dieter Maurer wrote: And If I can express yet an other wish: I would very much like to have a way to see what the settings for a particular User is. And where the settings for a given permissions have come from. You might be interested in GRUFs Audit. When I tried it in my installation, it entered an infinite loop -- apparently some bug. But conceptually, it may come near to what you want. I do have such a tool myself. It is only that I think it should be provided by the core. Using my own tool I am allways afraid that I did not understand an obscure aspect of the security machinery correctly. Robert ___ 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 )
Re: [Zope-dev] [Zope Enhancement Proposal] Sanitizing local roles
I would very much apreciate such an enhancment. so ++1 I would like to see where a role was assigned. And If I can express yet an other wish: I would very much like to have a way to see what the settings for a particular User is. And where the settings for a given permissions have come from. Robert Dieter Maurer wrote: Local roles are acquired from ancestors. While this is not bad for e.g. a Manager local role, its conceptual usefulness is in great doubt for e.g. the Owner role. It is very unclear why an Owner of a folder should automatically be an Owner of all its content. I therefore propose to make acquisition of local roles customizable. I see two potential variants: 1. objects get a boolean flag __ac_acquire_local_roles__ with default value True which allows acquisition of all local roles. 2. objects get a dictionary __ac_acquire_local_roles__ mapping role names to a boolean which allows acquisition for the respective role. Of course, the second variant provides more fine grained control and will require a more complex UI. The change would affect the methods allowed and getRolesInContext. of AccessControl.User.BasicUser and would require new methods in AccessControl.Role.RoleManager to read and modify the new __ac_acquire_local_roles__. Moreover, I propose to change the local role management pages. When setting local roles, information about acquired local role definitions is very helpful. I therefore propose to display this information on the local role edit page. I even would prefer a much more drastic change for both local role management and permission-role-map management: a compact look only overview mapping roles to users and permission to roles, respectively, with links to a page to edit the association of a single role or permission, respectively. Something like: Role| acquire | locally assigned users| ancestor assigned users - Owner | no | dieter| admin, dieter - Manager | yes| dieter| admin - The Role column is a link to a page to edit acquire and locally assigned users for the respective role. Advantages: * more natural behaviour for roles like Owner * access restricted sub-sites would be much easier to implement * more informative management pages Risks: * Classes deriving from AccessControl.BasicUser may have overridden allowed and getRolesInContext. Such overridden methods would not interpret __ac_acquire_local_roles__ until adapted. Fortunately, it is not very likely that these two methods are overridden. * Local roles get a bit more complex. However, explicit acquisition control is already used for the permission role mapping. Thus, users could recognize the same concept. * The 2.8/2.9 edition of the Zope Book would need to be adapted. If there is interest, I could implement the changes and provide patches against the Zope SVN version. However, I do not have write permissions to the repository. This means, someone else would need to make the actual checkins. BTW: Almost surely, I will implement the proposed change in our private Zope copy and use it in one of our projects. This means, I could provide production experience for the change in some months. ___ 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 )
Re: [Zope-dev] [Zope Enhancement Proposal] Sanitizing local roles
I agree with you, technically it is not in line with Dieter's proposal. But locically. Whenever I come accross one I have to deal with the other. And I never said, that we have to add all the information to one single table.. As you said, it is not really hard to write the code for a task as I propoaed. It is the fact that there is no easy way to get at this (badly needed) information that is anoying. Robert Andreas Jung wrote: --On Donnerstag, 22. Juli 2004 21:35 Uhr +0200 robert rottermann [EMAIL PROTECTED] wrote: I would like to see where a role was assigned. And If I can express yet an other wish: I would very much like to have a way to see what the settings for a particular User is. And where the settings for a given permissions have come from. Your problem is mainly a problem of visualization. and at least not directly related to Dieters proposal. For a project I wrote a UI where you can see for a given object in the ZODB hierarchy which permission/role settings are defined above in the tree and which subobjects override the settings. The code for doing this is not really a problem. The problem is how to put these informations in a UI. Given the nature of the problem one would really need a 3D display..maybe 4D :-) Andreas Jung zopyx.com - Software Development and Consulting Andreas Jung ___ 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 )
Re: [Zope-dev] Product Testing
Do not run Zope as a service but from a batch file (you find it as /YOURINSTANCE/bin/runzope.bat) Then I would propose using wing from www.wingide.com. I recomend the beta 2.0 version since it has a muchg nicer UI than the V 1.X Robert Marshall Powers wrote: I'm somewhat new to zope in general, and I've been having some trouble developing products. Im running 2.7 on WinXP as a windows service. My biggest problem is with debugging my products. Right now, the only feedback I get is whether or not the zope service starts successfully. It would really help if I could get some error message as to what part of my product zope choked on. Any Ideas? Thank You, Marshall ___ 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 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] cvs down ??
Hi there, I try to access the Zope cvs anonymously according to the instructions. However it fails. Has anything changed, or is this temporarily. Robert [EMAIL PROTECTED]:/home/zope/Products cvs -d :pserver:[EMAIL PROTECTED]:/cvs-repository co Zope cvs [checkout aborted]: connect to cvs.zope.org:2401 failed: Connection refused ___ 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 )
Re: [Zope-dev] cvs down ??
Tim Peters wrote: [robert rottermann] I try to access the Zope cvs anonymously according to the instructions. However it fails. Has anything changed, or is this temporarily. :pserver: access is disabled for now, because of recently announced security holes. It will be enabled again when (and if?) CVS is repaired and installed. [EMAIL PROTECTED]:/home/zope/Products cvs -d :pserver:[EMAIL PROTECTED]:/cvs-repository co Zope cvs [checkout aborted]: connect to cvs.zope.org:2401 failed: Connection Refused Maybe better news: if you want Zope HEAD, that's been moved from CVS to SVN. Install an svn client, and do svn co svn://svn.zope.org/repos/main/Zope/trunk Zope Tim, thanks for your answer, what I would like to download is CMFSetup Robert ___ 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 )
Re: [Zope-dev] Read-only root database doesn't work ... bug or feature?
Paul Winkler wrote: On Thu, May 20, 2004 at 10:53:35AM +0200, robert rottermann wrote: Paul Winkler wrote: I'm trying to figure out how to mount my main storage read-only with zope 2.7.0. I'm starting to suspect that it's impossible. (snip) we had a simmilar problem. Eventually we spved it by patching zope. However I am not sure whether the problem was caused by Products (we do it for a plone site ) or by Zope itself. what we changed is on a windows box that is not running under linux. thats why I do not include it here. However I can rboot that machine and send it to you if you like. Please do! That would be much appreciated. Thanks! Paul, sorry that it took so long. I just booted my server under windows to get at what adaptations we did, however I found out that I do not have the code on that computer. However it was something allong the line dieter suggested. I am however interested what your findings with Formulator is. We have a very strange problem with the CD we create. A Product of ours that is based on Archetypes is not initialized correctly. We have to first refresh Archetypes and then our product from the ZMI. If you have an idea what could be the problem he: Hints are welcome. Robert ___ 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 )
Re: [Zope-dev] Read-only root database doesn't work ... bug or feature?
Paul Winkler wrote: I'm trying to figure out how to mount my main storage read-only with zope 2.7.0. I'm starting to suspect that it's impossible. I tried a few things below - ATTEMPT #1. I find this in the zope.conf examples: # Directive: read-only-database # # Description: # This causes the main Zope FileStorage-backed ZODB to be opened in # read-only mode. # # Default: off # # Example: # # read-only-database on ... so I uncomment that line and restart. Zope starts OK but the database is evidently still writeable, I can still change anything. Is this a bug in the zope.conf examples, or a bug in zope? - ATTEMPT #2. Apparently there is another read-only flag within each database config section. So, I try that. In my zope.conf: zodb_db main # Main FileStorage database cache-size 2 mount-point / filestorage path $INSTANCE/var/Data.fs read-only on /filestorage /zodb_db When I start with this config, zope dies during product initialization which apparently wants to commit: -- 2004-05-19T19:08:10 ERROR(200) Zope Couldn't install Formulator Traceback (most recent call last): File /home/pw/Zope-2.7.0/lib/python/OFS/Application.py, line 785, in install_product get_transaction().commit() File /home/pw/Zope-2.7.0/lib/python/ZODB/Transaction.py, line 232, in commit self._commit_begin(jars, subjars, subtransaction) File /home/pw/Zope-2.7.0/lib/python/ZODB/Transaction.py, line 340, in _commit_begin jar.tpc_begin(self) File /home/pw/Zope-2.7.0/lib/python/ZODB/Connection.py, line 692, in tpc_begin self._storage.tpc_begin(transaction) File /home/pw/Zope-2.7.0/lib/python/ZODB/BaseStorage.py, line 142, in tpc_begin raise POSException.ReadOnlyError() ReadOnlyError Traceback (most recent call last): File /home/pw/Zope-2.7.0/lib/python/Zope/Startup/run.py, line 49, in ? run() File /home/pw/Zope-2.7.0/lib/python/Zope/Startup/run.py, line 19, in run start_zope(opts.configroot) File /home/pw/Zope-2.7.0/lib/python/Zope/Startup/__init__.py, line 51, in start_zope starter.startZope() File /home/pw/Zope-2.7.0/lib/python/Zope/Startup/__init__.py, line 230, in startZope Zope.startup() File /home/pw/Zope-2.7.0/lib/python/Zope/__init__.py, line 46, in startup _startup() File /home/pw/Zope-2.7.0/lib/python/Zope/App/startup.py, line 93, in startup OFS.Application.initialize(application) File /home/pw/Zope-2.7.0/lib/python/OFS/Application.py, line 279, in initialize initializer.initialize() File /home/pw/Zope-2.7.0/lib/python/OFS/Application.py, line 306, in initialize self.install_products() File /home/pw/Zope-2.7.0/lib/python/OFS/Application.py, line 553, in install_products return install_products(app) File /home/pw/Zope-2.7.0/lib/python/OFS/Application.py, line 584, in install_products folder_permissions, raise_exc=debug_mode) File /home/pw/Zope-2.7.0/lib/python/OFS/Application.py, line 785, in install_product get_transaction().commit() File /home/pw/Zope-2.7.0/lib/python/ZODB/Transaction.py, line 232, in commit self._commit_begin(jars, subjars, subtransaction) File /home/pw/Zope-2.7.0/lib/python/ZODB/Transaction.py, line 340, in _commit_begin jar.tpc_begin(self) File /home/pw/Zope-2.7.0/lib/python/ZODB/Connection.py, line 692, in tpc_begin self._storage.tpc_begin(transaction) File /home/pw/Zope-2.7.0/lib/python/ZODB/BaseStorage.py, line 142, in tpc_begin raise POSException.ReadOnlyError() ZODB.POSException.ReadOnlyError - So, am I just plain S.O.L.? Is this impossible? (Note: a similar message was sent earlier to dirstorage-users, but experimentation has shown me that the storage implementation doesn't seem to matter... i get the same result with filestorage, directorystorage, or clientstorage.) we had a simmilar problem. Eventually we spved it by patching zope. However I am not sure whether the problem was caused by Products (we do it for a plone site ) or by Zope itself. what we changed is on a windows box that is not running under linux. thats why I do not include it here. However I can rboot that machine and send it to you if you like. Robert ___ 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 )
Re: [Zope-dev] Re: Conflict errors on BDBMinimal storage
Chris McDonough wrote: On Tue, 2004-05-18 at 14:15, Tres Seaver wrote: I recently reworked Anthony Baxter's SQLSessions product for a consulting customer, essentially modernizing the code and making it compliant with the new Sessions interface (I dropped the bits which do the work currently done by BrowserIDManager). It took me about six hours or so, including writing unit tests. Unfortunately, I don't have access to that code, due to the nature of the consulting arrangement. What I would like to do is revisit the effort, using the new PluginRegistry code released as part of the PluggableAuthService release; I am, however, pretty well booked up for the next few weeks. I would be glad to advise anybody who felt called to take on such an effort, however. I would also like to see this happen. I don't have the time to help implement this right now, but I may be able to work it in to an ongoing engagement at some point in the next few months. - C ___ 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 ) I do not know whether I understand this email correctly. So mabe I am off topic. We would like to use thre PluggableAuthService to replace a userfolder that authenticates against a an email server (calling a web service to do so) and then caches authentification and other user info in a session. So we would like to dig into what both of you seem not to have time to do. How can we get at PluggableAuthService? I did not find it anywhere. And we would of course gladly accept Tres offer for advise. Robert ___ 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 )
Re: [Zope-dev] Re: The bleak Future of Zope?!
will not be able to participate easily on the academic Zope3 train. The technic freaks who modell Zope3 are usually not application developers, which have to build and run working applications for real human users. That's both insulting and incorrect. Many of the leaders of the Zope 2 community are involved in Zope 3 and using it. These people are application developers. Jim, we native german speakers tend to be much more direct and phrase dings more bluntly the you americans do. In german I read Maik's statement as a strong opinion but never as an insult. Since I am the one who asked Mike to speak up I would feel bad if it created any bad feelings. Robert ___ 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 )
Re: Zope + Ape + Subversion (was: RE: [Zope-dev] Using a truely r evis ion based storage for Zope ?)
[EMAIL PROTECTED] wrote: Brad, About the branch thing ... That's basically the idea! The bigger problem here is how to manage this both internally and from a user/administrator perspective. This paradigm only really makes sense in the CMF world anyways, and I want to focus on basic Zope before moving up to the extra layer CMF represents. I'm also worried getting something like this to work with CMF woudl require an ungodly amount of monkey patching :P The main things with CMF would be: 1) published type states vs. other states: how does one tell/define the difference ? How does this information get passed to/from the publishing system or the storage layer ? Possible solution: Have the subversion/zope interface interact with DCWorkflow. When an object is changed, consult DCWorkflow settings and determine what state the object is in. If the state is deemed published, copy the object into the publishing branch. 2) If we got this far, then I need to know when to use the branch vs. the trunk. From a user prespective this isn't too big a deal, a ZMI interface, cookies, etc ... That's all ok ... The problem is that by the time the request comes to the storage side of things, that information is most likely gone (Don't know though, I'm still learning). Then there's the whole caching thing that would probably complicate things. 2) Message logging: CMF comments when doing a workflow action could go straight into SVN's logging, again how this might be accomplished isn't clear as of yet. This is all for the future though, I'm nowhere near this yet!! Also, I'm thinking the cooler features may just have to wait for Zope 3 ... Implementing them in Zope might be too convoluted. I should probably start a Wiki on this topic ! J.F. -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 13/04/2004 8:40 AM Subject: Re: Zope + Ape + Subversion (was: RE: [Zope-dev] Using a truely revis ion based storage for Zope ?) On 12 Apr 2004 at 18:03, [EMAIL PROTECTED] wrote: Anyways, I'm just rambling by now ... Comments, thoughts and constructive criticism welcome ! This sounds wonderful! Regarding versions. Perhap you can have a control panel setting that selects the branch to publish by default. The ZMI could offer another mechanism that uses cookies to select the desired branch or version That is, a branch name or PREV, HEAD etc. But, I use jEdit and FTP for most of my Zope work, so would really like to have a way to access version/branches via FTP. Maybe that can be done by having pseudo subdirectories named after revisions or branches. So /myFolder/.Prev/index_html would do what you expect (note you can't save to old versions anyway ..) François, we did a versioning Product here at redCOR which is about to go into production. It is served trough DCWorkflow state changes. It stores a series of objects per versioned object. One for each version. No diff's or such. I would be very much interested to adapt it such that it uses an APE/svn augmented storage for it. Robert ___ 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 )
Re: [Zope-dev] Re: [Zope3-dev] Re: Zope and zope
Fred Drake wrote: Jim Fulton noted: Of course, having two packages with names differing only in case is a bit ugly. Do we want to consider renaming one or both of these packages to avoid the conflict? A bit ugly, but I can live with it. On Tuesday 13 April 2004 22:17, Tres Seaver wrote: -1 to renaming 'Zope'; the amount of third-party code which we would break is incalculable. -0 to renaming 'zope' to 'z3', or something; at least third party code for Zope3 was built in the test-driven culture, and has at least some chance of migrating cleanly with confidence. On Tuesday 13 April 2004 10:44 pm, Stephan Richter wrote: You wanna rename 'zope' to 'z3' for the purpose of merging the two? I really hope that will not be the case. Or is this for Zope 2 only? I would hate to have imports like z3.app.foo or even z3.i18n. I am definitely -1 on this option, if it also applies to standalone Zope 3. Tres has a good objection, *if* we actually expect 3rd-party Zope 2 code to work in Zope 3. (I don't know if we have this requirement or not; I've no personal interest in doing so.) If we don't expect 3rd-party Zope 2 code to work in Zope 3, then the second entry on sys.path seems good enough; having a collection of code identified by two different names is unworkable. (Think absolute imports here.) Any requirement that states 3rd-party Zope 2 code work in Zope 3 will have to be worked out; that's the key here. -Fred I have not done anything with z3 yet, tough we intend to start working with it soon. We have a number of products that are mostly plain python within a thin zope-shell. Since we probably would like to use them in z3 and must maintain them in z2 I would like to see a way to mix the two. Robert ___ 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 )
Re: [Zope-dev] Call for testing (2.6.4 / 2.7.0)
Bingo, I tested with 2.7 and things work again. thanks for your efforts. Robert On Tuesday 27 January 2004 22:08, Brian Lloyd wrote: Hi all - Tres and I have been working to merge some final fixes, and I'd like to be able to make rc2 releases for 2.6.4 and 2.7.0 tomorrow. In the meantime, it would be helpful for anyone who runs from the 2.6 or 2.7 branches in CVS to update and let us know if you have any unresolved problems. It would be especially helpful for those who were having trouble with things like workflow scripts under the rc1 releases to give this a shot and let us know if the trouble is resolved. **Note that you need to rebuild the C extensions, due to a fix to cAccessControl. Be sure to do this before reporting any lingering issues!** Thanks, Brian Lloyd[EMAIL PROTECTED] V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com ___ 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 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 )
Re: [Zope-dev] Re: RFC: backward compatibility of ps bindingsRESOLUTION
Brian Lloyd wrote: I did check with a fresh 2.6 xx A DCWorkflow script that was not not called with the version from a few hours ago is now called but produces the following traceback This happens when the container binding is set to container and also when it is cleared. Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.CMFCore.FSPythonScript, line 92, in __call__ Module Shared.DC.Scripts.Bindings, line 298, in __call__ Module Shared.DC.Scripts.Bindings, line 329, in _bindAndExec Module Products.CMFCore.FSPythonScript, line 126, in _exec - __traceback_info__: ({'traverse_subpath': [], 'container': PloneSite instance at 95efa58, 'context': PloneFolder instance at 9615280, 'script': FSPythonScript at /zehnder/zehnder/createObject used for /zehnder/zehnder/tasklist/Task.2004-01-21.1914/Attachments}, (None, 'File', None), {}, (None, None, None)) Module None, line 12, in createObject Module Products.CMFCore.PortalFolder, line 362, in invokeFactory Module Products.CMFCore.TypesTool, line 824, in constructContent Module Products.CMFCore.TypesTool, line 516, in constructInstance Module Products.CMFCore.TypesTool, line 420, in _finishConstruction Module Products.CMFCore.CMFCatalogAware, line 101, in notifyWorkflowCreated Module Products.CMFPlone.WorkflowTool, line 26, in notifyCreated Module Products.CMFCore.WorkflowTool, line 362, in notifyCreated Module Products.DCWorkflow.DCWorkflow, line 367, in notifyCreated Module Products.DCWorkflow.DCWorkflow, line 440, in _changeStateOf Module Products.DCWorkflow.DCWorkflow, line 543, in _executeTransition Module Shared.DC.Scripts.Bindings, line 298, in __call__ Module Shared.DC.Scripts.Bindings, line 329, in _bindAndExec Module Products.PythonScripts.PythonScript, line 311, in _exec Module None, line 1, in setTaskOwner - PythonScript at /zehnder/zehnder/portal_workflow/ZWorkflow/scripts/setTaskOwner - Line 1 AttributeError: StateChangeInfo instance has no attribute 'getPhysicalRoot' Robert It would be helpful if you could go through that in the debugger and see if you can get any more info - I don't see anything in this that obviously points to any of the recent security changes. That's not to say that one of those changes couldn't still be the cause, but this traceback doesn't point to anything we can look at :( Alternatively, if you can make a copy of the failing script and boil it down to the minimum possible code that demostrates something that should be working but isn't (and that excludes app-specific or Plone objects if possible so that we can turn it into a unit test) I can try to look at it here. thx, Brian Lloyd[EMAIL PROTECTED] V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com Brian, I tried hard to recreate the problem in isolation but failed. So it must be something whith what we are doing. Strange that our code works fine with 2.62. thanks again Robert ___ 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 )
Re: [Zope-dev] Re: RFC: backward compatibility of ps bindings RESOLUTION
Brian Lloyd wrote: Jeremy Hylton wrote: What if you used a special object that would produce a useful error message if the user tries to access the container. I like this. Make it a singleton, and put it in the global namespace for Scripts, so that we can write: if context is Inaccessible: # Do without access to context I've checked in the changes to the 2.6 branch, 2.7 branch and the head to change the binding behavior for 'container' and 'context': - If the user does not have access to the item, the script will bind an UnauthorizedBinding object instead of the real object, rather than throw an exception at binding time. - Any attribute or item access on the UnauthorizedBinding will throw an Unauthorized, including the name of the binding that the user didn't have access to. The result is that if you have scripts where the script container is inaccessible to the users of the script: - If the script does not reference 'container' in its code, things will work without any action on the part of the site admin - If the script *does* reference 'container' then a meaningful Unauthorized error will be raised. Site admins can either give users the appropriate roles on the script container or give appropriate proxy roles to the scripts to fix any problems. Note that I *didn't* put the UnauthorizedBinding in the script globals to implement the Inaccessible idea above, because: - it is kind of 'featurish', at least in that it really should have some associated documentation etc. - I want to make only absolutely necessary changes at this point and get 2.6.4 and 2.7.0 finalized. If any of the Plone folk who have been running into this issue can try the changes from cvs, I'd appreciate it. thx, Brian Lloyd[EMAIL PROTECTED] V.P. Engineering 540.361.1716 Zope Corporation http://www.zope.com ___ 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 ) I did check with a fresh 2.6 xx A DCWorkflow script that was not not called with the version from a few hours ago is now called but produces the following traceback This happens when the container binding is set to container and also when it is cleared. Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.CMFCore.FSPythonScript, line 92, in __call__ Module Shared.DC.Scripts.Bindings, line 298, in __call__ Module Shared.DC.Scripts.Bindings, line 329, in _bindAndExec Module Products.CMFCore.FSPythonScript, line 126, in _exec - __traceback_info__: ({'traverse_subpath': [], 'container': PloneSite instance at 95efa58, 'context': PloneFolder instance at 9615280, 'script': FSPythonScript at /zehnder/zehnder/createObject used for /zehnder/zehnder/tasklist/Task.2004-01-21.1914/Attachments}, (None, 'File', None), {}, (None, None, None)) Module None, line 12, in createObject Module Products.CMFCore.PortalFolder, line 362, in invokeFactory Module Products.CMFCore.TypesTool, line 824, in constructContent Module Products.CMFCore.TypesTool, line 516, in constructInstance Module Products.CMFCore.TypesTool, line 420, in _finishConstruction Module Products.CMFCore.CMFCatalogAware, line 101, in notifyWorkflowCreated Module Products.CMFPlone.WorkflowTool, line 26, in notifyCreated Module Products.CMFCore.WorkflowTool, line 362, in notifyCreated Module Products.DCWorkflow.DCWorkflow, line 367, in notifyCreated Module Products.DCWorkflow.DCWorkflow, line 440, in _changeStateOf Module Products.DCWorkflow.DCWorkflow, line 543, in _executeTransition Module Shared.DC.Scripts.Bindings, line 298, in __call__ Module Shared.DC.Scripts.Bindings, line 329, in _bindAndExec Module Products.PythonScripts.PythonScript, line 311, in _exec Module None, line 1, in setTaskOwner - PythonScript at /zehnder/zehnder/portal_workflow/ZWorkflow/scripts/setTaskOwner - Line 1 AttributeError: StateChangeInfo instance has no attribute 'getPhysicalRoot' Robert ___ 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] 2.6.4.c1 still problem with security
Hi there, I am using zope from cvs Zope-2_6-branch. I still get the following assertion in a DCWorkflow which worked flawlessly in 2.6.2 Thanks for any pointers Robert Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.CMFCore.FSPythonScript, line 92, in __call__ Module Shared.DC.Scripts.Bindings, line 261, in __call__ Module Shared.DC.Scripts.Bindings, line 292, in _bindAndExec Module Products.CMFCore.FSPythonScript, line 126, in _exec - __traceback_info__: ({'traverse_subpath': [], 'container': PloneSite instance at 8bbed10, 'context': PloneFolder instance at 96fb608, 'script': FSPythonScript at /zehnder/zehnder/createObject used for /zehnder/zehnder/tasklist/Task.2004-01-19.3020/Attachments}, (None, 'File', None), {}, (None, None, None)) Module None, line 12, in createObject Module Products.CMFCore.PortalFolder, line 362, in invokeFactory Module Products.CMFCore.TypesTool, line 824, in constructContent Module Products.CMFCore.TypesTool, line 516, in constructInstance Module Products.CMFCore.TypesTool, line 420, in _finishConstruction Module Products.CMFCore.CMFCatalogAware, line 101, in notifyWorkflowCreated Module Products.CMFPlone.WorkflowTool, line 26, in notifyCreated Module Products.CMFCore.WorkflowTool, line 362, in notifyCreated Module Products.DCWorkflow.DCWorkflow, line 367, in notifyCreated Module Products.DCWorkflow.DCWorkflow, line 440, in _changeStateOf Module Products.DCWorkflow.DCWorkflow, line 543, in _executeTransition Module Shared.DC.Scripts.Bindings, line 261, in __call__ Module Shared.DC.Scripts.Bindings, line 290, in _bindAndExec Module Shared.DC.Scripts.Bindings, line 1, in ? Module Shared.DC.Scripts.Bindings, line 224, in _getContext Unauthorized: You are not allowed to access in this context ___ 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 )
Re: [Zope-dev] 2.7rc1 - Unauthorized: You are not allowed to access '' in this context
Stuart, I do have the same problem. And it occurs using 2.7x and 2.6x. I am using local roles heavilly so I wonder whether it is linked to that Robert Stuart Bishop wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In Shared.DC.Scripts.Bindings._getContext(self), there seems to be a new security check: getSecurityManager().validate(parent, container, '', self) This is now giving me the following traceback: Traceback (innermost last): Module ZPublisher.Publish, line 100, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module Products.CGPublisher.storage.Storage, line 911, in editPane Module Shared.DC.Scripts.Bindings, line 261, in __call__ Module Shared.DC.Scripts.Bindings, line 292, in _bindAndExec Module Products.PageTemplates.PageTemplateFile, line 106, in _exec Module Products.PageTemplates.PageTemplate, line 90, in pt_render - PageTemplateFile at /CGPublisher/w Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.CMFCore.FSPythonScript, line 92, in __call__ Module Shared.DC.Scripts.Bindings, line 261, in __call__ Module Shared.DC.Scripts.Bindings, line 292, in _bindAndExec Module Products.CMFCore.FSPythonScript, line 126, in _exec - __traceback_info__: ({'traverse_subpath': [], 'container': PloneSite instance at 8bbed10, 'context': PloneFolder instance at 96fb608, 'script': FSPythonScript at /zehnder/zehnder/createObject used for /zehnder/zehnder/tasklist/Task.2004-01-19.3020/Attachments}, (None, 'File', None), {}, (None, None, None)) Module None, line 12, in createObject Module Products.CMFCore.PortalFolder, line 362, in invokeFactory Module Products.CMFCore.TypesTool, line 824, in constructContent Module Products.CMFCore.TypesTool, line 516, in constructInstance Module Products.CMFCore.TypesTool, line 420, in _finishConstruction Module Products.CMFCore.CMFCatalogAware, line 101, in notifyWorkflowCreated Module Products.CMFPlone.WorkflowTool, line 26, in notifyCreated Module Products.CMFCore.WorkflowTool, line 362, in notifyCreated Module Products.DCWorkflow.DCWorkflow, line 367, in notifyCreated Module Products.DCWorkflow.DCWorkflow, line 440, in _changeStateOf Module Products.DCWorkflow.DCWorkflow, line 543, in _executeTransition Module Shared.DC.Scripts.Bindings, line 261, in __call__ Module Shared.DC.Scripts.Bindings, line 290, in _bindAndExec Module Shared.DC.Scripts.Bindings, line 1, in ? Module Shared.DC.Scripts.Bindings, line 224, in _getContext Unauthorized: You are not allowed to access in this context orks/2/5/source/getaway/details/editPaneHelper Module Products.PageTemplates.PageTemplateFile, line 74, in pt_getContext Module Shared.DC.Scripts.Bindings, line 224, in _getContext Module AccessControl.ImplPython, line 398, in validate Module AccessControl.ImplPython, line 263, in validate Unauthorized: You are not allowed to access '' in this context editPaneHelper is just a PageTemplateFile. Storage.editPane (Python - not Python Script) is calling it like: return self.editPaneHelper(**options) Can anyone give me a hint on tracking this down? I have so far been unable to write a minimal example that fails (they all work), so I'm unsure if this is a Zope problem or my problem. - -- Stuart Bishop [EMAIL PROTECTED] http://www.stuartbishop.net/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (Darwin) iD8DBQFADPECAfqZj7rGN0oRAgUYAJsG+0Bx51I2ZBufS476v7mbOIjT7QCgmBD/ NfboK3y2rSJiT/eR55/ECP8= =ctqN -END PGP SIGNATURE- ___ 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 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 )
Re: [Zope-dev] 2.6.4.c1 still problem with security
Having read Stuarts post with a similar context I was digging trough DCWorkflow with the debugger and found that In Shared.DC.Scripts.Bindings._getContext(self), there seems to be a new security check: getSecurityManager().validate(parent, container, '', self) does only allow Manager to access the container of the script that is called during the DCWorkflow transition. Any ideas? Robert robert rottermann wrote: Hi there, I am using zope from cvs Zope-2_6-branch. I still get the following assertion in a DCWorkflow which worked flawlessly in 2.6.2 Thanks for any pointers Robert Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.CMFCore.FSPythonScript, line 92, in __call__ Module Shared.DC.Scripts.Bindings, line 261, in __call__ Module Shared.DC.Scripts.Bindings, line 292, in _bindAndExec Module Products.CMFCore.FSPythonScript, line 126, in _exec - __traceback_info__: ({'traverse_subpath': [], 'container': PloneSite instance at 8bbed10, 'context': PloneFolder instance at 96fb608, 'script': FSPythonScript at /zehnder/zehnder/createObject used for /zehnder/zehnder/tasklist/Task.2004-01-19.3020/Attachments}, (None, 'File', None), {}, (None, None, None)) Module None, line 12, in createObject Module Products.CMFCore.PortalFolder, line 362, in invokeFactory Module Products.CMFCore.TypesTool, line 824, in constructContent Module Products.CMFCore.TypesTool, line 516, in constructInstance Module Products.CMFCore.TypesTool, line 420, in _finishConstruction Module Products.CMFCore.CMFCatalogAware, line 101, in notifyWorkflowCreated Module Products.CMFPlone.WorkflowTool, line 26, in notifyCreated Module Products.CMFCore.WorkflowTool, line 362, in notifyCreated Module Products.DCWorkflow.DCWorkflow, line 367, in notifyCreated Module Products.DCWorkflow.DCWorkflow, line 440, in _changeStateOf Module Products.DCWorkflow.DCWorkflow, line 543, in _executeTransition Module Shared.DC.Scripts.Bindings, line 261, in __call__ Module Shared.DC.Scripts.Bindings, line 290, in _bindAndExec Module Shared.DC.Scripts.Bindings, line 1, in ? Module Shared.DC.Scripts.Bindings, line 224, in _getContext Unauthorized: You are not allowed to access in this context ___ 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 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 )
Re: [Zope-dev] localfs and zope 2.7 (was: Re: 2.7 assertion with CVS of that morning two)
Bakhtiar, thanks for your pointer. unfortunately I can not reach my-zope.org. And the cvs on sourceforge is 16 months old. Not 2.7 ready I geuess. I fixed The missing docstring problem, but I still can not add a local FS. As soon as I add a local FS to a directory, that directory becomes unaccessible. Is your LocalFS running under 2.7. What have you done? Would you min send me your adapted product ? thanks Robert On Friday 16 January 2004 10:22, Bakhtiar A Hamid wrote: On Friday 16 January 2004 17:01, [EMAIL PROTECTED] wrote: Message: 2 Date: Fri, 16 Jan 2004 00:56:36 +0100 From: robert [EMAIL PROTECTED] Subject: Re: [Zope-dev] Re: 2.7 assertion with CVS of that morning two days ago To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 Thanks, Yuppie allredy pointed me to my error. Things work fine now. Strange that this is not yet fixed in the CVS. Robert The only thing I am still figthing: LocalFS does not work under 2.7. You do not happen to know how to fix it? fyi, i've danced to this tune, and the easiest is get localfs from cvs here's the document - http://www.my-zope.org/Members/kedai/News_Item.2003-12-30.2242 or sf.net/projects/localfs hth ___ 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 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 )
Re: [Zope-dev] Re: Zope 2.8?
Sorry for creating a mess, I get the error with and without VerboseSecurity. The one VerboseSecurity I am using is only a couple of days old from CVS. I thought this one was allready adapted. Robert On Saturday 17 January 2004 16:04, Jim Fulton wrote: Gfeller Martin wrote: Dear Jim, are there already plans when Zope 2.8 should see the light of the day? Other than soon, no. It depend on resources, including non-ZC contributors, and problems we encounter. I've updated the project area at: http://dev.zope.org/Wikis/DevSite/Projects/Zope2.8 including the milestone plan: http://dev.zope.org/Wikis/DevSite/Projects/Zope2.8/MilestonePlan We're mostly interested in the ZODB 3.3 features, i.e., getting rid of Extension Classes. Well, I hope you've been trying out the ZODB 3.3 releases and providing feedback. Jim ___ 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 )
Re: [Zope-dev] Re: 2.7 assertion with CVS of that morning two days ago
Thanks, Yuppie allredy pointed me to my error. Things work fine now. Strange that this is not yet fixed in the CVS. Robert The only thing I am still figthing: LocalFS does not work under 2.7. You do not happen to know how to fix it? On Thursday 15 January 2004 19:45, Clemens Robbenhaar wrote: Hi Robert, Hi Tres, Adding 'guarded_hasattr' to the list of items wrapped items did not help. I guess You have taken Tres too literally. I did the same (i.e. adding the string 'guarded_hasattr' to the _NEED_WRAPPING list) and could reproduce Your issue. After wandering through the code a while I think Tres meant the function guarded_hasattr to be registered under the name hasattr ... I do not really understand what happens. I don't either, but the follwing works for me :) diff -w -u -r1.1.2.2 Implementation.py --- AccessControl/Implementation.py 12 Jan 2004 23:58:39 - 1.1.2.2 +++ AccessControl/Implementation.py 15 Jan 2004 18:38:34 - @@ -92,7 +92,7 @@ from DocumentTemplate import DT_Util from ZopeGuards import safe_builtins -_NEED_WRAPPING = ('max', 'min', 'iter', 'enumerate', 'sum') +_NEED_WRAPPING = ('max', 'min', 'iter', 'enumerate', 'sum', 'hasattr') for k, v in safe_builtins.items(): if k in _NEED_WRAPPING: Chers, Clemens ___ 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 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 )
Re: [Zope-dev] Re: 2.7 assertion with CVS of this morning
On Wednesday 14 January 2004 09:20, Yuppie wrote: Did you see my other mail? Adding 'hasattr' (not 'guarded_hasattr') to _NEED_WRAPPING works for me. Thanks for the clarification. Now it works. Robert ___ 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 )
Re: [Zope-dev] Re: 2.7 assertion with CVS of this morning
I found this, however 'has_order_support' is not the third argument. That is why I do not unterstand what happens. Robert On Tuesday 13 January 2004 23:58, Yuppie wrote: robert wrote: I grepped for has_order_support to find out where this happens, but did not find it. The Zope 2.7 main.dtml has this code: _.hasattr(this().aq_self, 'has_order_support') HTH, Yuppie ___ 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 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] 2.7 dies when downloading file
Hi there, I would be gratefull if somebody could help with the following: calling the following piece of code lets Zope die. security.declareProtected(CMFCorePermissions.View, 'index_html') def index_html(self, RESPONSE): Produce a PDF for issue RESPONSE.setHeader('content-type', self.content_type()) RESPONSE.setHeader('content-length', str(self.get_size())) RESPONSE.setHeader('content-disposition', 'attachment;filename=i%s' % self.getFilename()) RESPONSE.write(self.getFile()) it produces the following traceback File /home/zope/Zope-2.7-head/lib/python/Zope/Startup/run.py, line 49, in ? run() File /home/zope/Zope-2.7-head/lib/python/Zope/Startup/run.py, line 19, in run start_zope(opts.configroot) File /home/zope/Zope-2.7-head/lib/python/Zope/Startup/__init__.py, line 66, in start_zope Lifetime.loop() File /home/zope/Zope-2.7-head/lib/python/Lifetime.py, line 43, in loop lifetime_loop() File /home/zope/Zope-2.7-head/lib/python/Lifetime.py, line 53, in lifetime_loop asyncore.poll(timeout, map) File /usr/lib/python2.3/asyncore.py, line 125, in poll write(obj) File /usr/lib/python2.3/asyncore.py, line 81, in write obj.handle_error() File /home/zope/Zope-2.7-head/lib/python/ZServer/medusa/http_server.py, line 440, in handle_error asynchat.async_chat.handle_error (self) File /usr/lib/python2.3/asyncore.py, line 420, in handle_error self.close() File /home/zope/Zope-2.7-head/lib/python/ZServer/HTTPServer.py, line 342, in close p.more() # free up resources held by producer AttributeError: more ___ 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 )
Re: [Zope-dev] Unable to find Database adapter for MySQL
There is a Zope productct called ZMySQLDA you have to install. This is the bridge between ZSQL and the pythonMySQL adapter. Robert On Friday 02 January 2004 10:20, Rajesh s shiggaon wrote: P Hi folks,BR BR nbsp; nbsp; I am using Zope 2.6.2 on windows platform. I am new to this ZOPE concept. I wanted to use the MySQL 4.0.13 also installed on windows. What i thought was if i am able to write python script to access the databse then easly i can make Zope to run that script. I downloaded the database adapter for the python ( i installed it seperately) and started playing with it and finally succeded in accessing the databse. But when i tried the same script in zope it gave an error because zope is using its own python application for which i am not able to add the datbase adapter.BR BR Is there any other way? If yes where can i find the adapter?BR BR Can anyone help me out in this regard. BR BR Thanks,BR Rajesh /P Rajesh Shiggaonbrbr A target=_blank HREF=http://clients.rediff.com/signature/track_sig.asp;IMG SRC=http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com /[EMAIL PROTECTED] BORDER=0 VSPACE=0 HSPACE=0 HEIGHT=74 WIDTH=496/a ___ 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 )
Re: [Zope-dev] LocalFS does not work with Zope 2.7
thanks for your tip, I remember there was something but I just can not find it. Robert On Tuesday 30 December 2003 12:00, Andreas Jung wrote: Someone released a fix to make LocalFS work unter Plone + Zope 2.7. Maybe google or check the plone-users mailinglist archives. -aj --On Montag, 29. Dezember 2003 22:30 Uhr +0100 robert [EMAIL PROTECTED] wrote: Hi there, I tried to use LocalFS on a 2.7 (from cvs) Zope. I can add a a LocalFS, but then get a not found error, and the folder with the LocalFS in it (not the localFS itself) becomes unaccessible. I tried to debug into LocalFS. However it is beyond my grasp. Any help how to fix this would be appreciated. Robert ___ 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 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] LocalFS does not work with Zope 2.7
Hi there, I tried to use LocalFS on a 2.7 (from cvs) Zope. I can add a a LocalFS, but then get a not found error, and the folder with the LocalFS in it (not the localFS itself) becomes unaccessible. I tried to debug into LocalFS. However it is beyond my grasp. Any help how to fix this would be appreciated. Robert ___ 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 )
Re: [Zope-dev] Environment for Python Development
jeremy recommends this from developerWorks(TM): lesenswert - Title: Charming Python: Review of Python IDEs David looks at four open source development environments for working with Python code on Unix-like operating systems. He evaluates two general-purpose editors/environments and two Python-specific ones, and compares the merits of each. Learn more: http://www-106.ibm.com/developerworks/library/l-cpyide/?ca=dnt-449 developerWorks Need it? Get it. http://www.ibm.com/developerWorks Am Freitag, 12. Dezember 2003 14:20 schrieb Asad Habib: Hello. Do any of you know of an IDE(preferably open source) that I can use to develop/debug/test python code in? Thanks. - Asad ___ 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 ) -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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] can I suppress inheritence of local roles?
Hi there, when I give a local role to a folder, this local role is inheritet in the subfolders. Can I prevent this? thanks Robert ___ 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 )
Re: [Zope-dev] can I suppress inheritence of local roles?
Thanks Lennart, it is a pity that zope does not work like that. However since I allredy use an adapted version of NuxUserGrous I want to upgrade to GRUF I rather not use ure approach. I Probably will do it as follows: - No user has a the role Member - There are groups. Goups that are allowed to read a document are assigned to a document when it is published. The Group members get the Member rolle for the document. - I have most of the infrastructure in place and it is used successfully in a large intranet. Its only that use a mixed approach (groups are also assigned to folders) which now bites me. Robert - Every group that is allowed to see a document Am Freitag, 5. Dezember 2003 15:49 schrieb Lennart Regebro: From: robert [EMAIL PROTECTED] when I give a local role to a folder, this local role is inheritet in the subfolders. Can I prevent this? No. Or yes. :-) There is a patch available that lest you do this: http://zope.org/Members/regebro/LRBlacklist Warning, it's quite old and not tested with anything later than Zope 2.3.x. It also is gonna clash with anything else that fiddles with roles, like all types of groups support. //Lennart -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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] how can I set the time stamp of an object
Hi there, I would like to set the last modified time of a object that I read from a file to the modification time of that file. Can anybody please give me a hint or a piece of code how to do that? thanks Robert -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] how can I set the time stamp of an object
Härzleche Dank us Bärn Robert Am Dienstag, 2. Dezember 2003 17:36 schrieb Stefan H. Holek: Hi Robert! You can/should not muck with bobobase_modification_time. CMF 1.4 however has this in DublinCore: setModificationDate(self, modification_date=None) Stefan --On Dienstag, 02. Dezember 2003 15:58 +0100 robert [EMAIL PROTECTED] wrote: Hi there, I would like to set the last modified time of a object that I read from a file to the modification time of that file. Can anybody please give me a hint or a piece of code how to do that? thanks Robert -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 ) -- The time has come to start talking about whether the emperor is as well dressed as we are supposed to think he is. /Pete McBreen/ -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] Re: Zope 2.7 b3 problem with reindexing catalog
I will report a bug Robert Am Dienstag, 25. November 2003 08:25 schrieb Yuppie: Dieter Maurer wrote: robert wrote at 2003-11-24 05:32 +0100: Traceback (innermost last): * Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex TypeError: catalog_object() got an unexpected keyword argument 'update_metadata' update_metadata is a new keyword argument introduced recently (to fix a bug in Zope 2.6.2). Apparently, you have hit a bug in ZCatalog: While reindexIndex already uses the new argument, catalog_object does not yet support it. Yes. CMF's CatalogTool inherits from ZCatalog and overrides catalog_object. Robert, please report this to the Zope and the CMF Collector: - Zope's ZCatalog should have a capability check in reindexIndex. (Zope-2_6-branch, Zope-2_7-branch and HEAD) - CMF's CatalogTool should implement the new Interface. Cheers, Yuppie ___ 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 ) -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] Re: Zope 2.7 b3 problem with reindexing catalog
I opened an issue in the Zope collector but I am to dumb to find the CMF collector. If somebody please points me to it. Robert Am Dienstag, 25. November 2003 08:25 schrieb Yuppie: Dieter Maurer wrote: robert wrote at 2003-11-24 05:32 +0100: Traceback (innermost last): * Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex TypeError: catalog_object() got an unexpected keyword argument 'update_metadata' update_metadata is a new keyword argument introduced recently (to fix a bug in Zope 2.6.2). Apparently, you have hit a bug in ZCatalog: While reindexIndex already uses the new argument, catalog_object does not yet support it. Yes. CMF's CatalogTool inherits from ZCatalog and overrides catalog_object. Robert, please report this to the Zope and the CMF Collector: - Zope's ZCatalog should have a capability check in reindexIndex. (Zope-2_6-branch, Zope-2_7-branch and HEAD) - CMF's CatalogTool should implement the new Interface. Cheers, Yuppie ___ 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 ) -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] Zope 2.7 b3 problem with reindexing catalog
Thanks for your answer, The error happens with a plain CMF site freshly installed. So there are no unruly objects to reindex. Robert Am Sonntag, 23. November 2003 19:04 schrieb Marc Lindahl: Probably you're trying to index non-CMF non-plone objects - you can get a similar error with plain CMF if you have non-CMF objects that you try to index. I think what you have to do is clear the catalog and then use the 'find objects' page to reindex, only select the object types which are plone/CMF. On Thursday, November 20, 2003, at 12:28 AM, robert wrote: I did some more investigation: The problem does occur when a CMF portal_catalog is reindexed. It does not happen with plain catalog Robert Am Mittwoch, 19. November 2003 17:40 schrieb Andreas Jung: I can not reproduce this. Can you give us detailed description how to reproduce it or track it down on your own? -aj --On Mittwoch, 19. November 2003 17:15 Uhr +0100 robert [EMAIL PROTECTED] wrote: If I try to reindex a (plone) portal_catalog I get the following error Traceback (innermost last): * Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex TypeError: catalog_object() got an unexpected keyword argument 'update_metadata' Display traceback as text -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 ) -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] permissions on a python script...
If you are logged in with manager permissions and plone still asks for a passwort this usually means that you are trying to call a non exising template. Robert Am Montag, 24. November 2003 05:31 schrieb [EMAIL PROTECTED]: when I call my form processing script from a form action zope prompt me for a password I have fiddled with both the owner and security settings, with no success Any and all advice welcomed -thanks again -josh ___ 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 ) -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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] Zope 2.7 b3 problem with reindexing catalog
If I try to reindex a (plone) portal_catalog I get the following error Traceback (innermost last): * Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex TypeError: catalog_object() got an unexpected keyword argument 'update_metadata' Display traceback as text -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] Zope 2.7 b3 problem with reindexing catalog
I did not track it down really, but fixed it by removing the update_metadata argument in ZCatalog.py on line 459. What I did is creating a Plone Site, and then went to portal_catalog.indexes and reindexed all indices. I am at home now, where I do not have 2.7 installed. Robert Am Mittwoch, 19. November 2003 17:40 schrieb Andreas Jung: I can not reproduce this. Can you give us detailed description how to reproduce it or track it down on your own? -aj --On Mittwoch, 19. November 2003 17:15 Uhr +0100 robert [EMAIL PROTECTED] wrote: If I try to reindex a (plone) portal_catalog I get the following error Traceback (innermost last): * Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex TypeError: catalog_object() got an unexpected keyword argument 'update_metadata' Display traceback as text -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] Zope 2.7 b3 problem with reindexing catalog
I did some more investigation: The problem does occur when a CMF portal_catalog is reindexed. It does not happen with plain catalog Robert Am Mittwoch, 19. November 2003 17:40 schrieb Andreas Jung: I can not reproduce this. Can you give us detailed description how to reproduce it or track it down on your own? -aj --On Mittwoch, 19. November 2003 17:15 Uhr +0100 robert [EMAIL PROTECTED] wrote: If I try to reindex a (plone) portal_catalog I get the following error Traceback (innermost last): * Module ZPublisher.Publish, line 100, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 40, in call_object * Module Products.ZCatalog.ZCatalog, line 474, in manage_reindexIndex * Module Products.ZCatalog.ZCatalog, line 459, in reindexIndex TypeError: catalog_object() got an unexpected keyword argument 'update_metadata' Display traceback as text -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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] 2.7 what Python Version should I use
There was talk on using Python 2.3 for Zope 2.7. However when I build 2.7 from CVS the make complains that Python 2.3 is suboptimal and 2.2 prefered. Should I nonetheless run 2.7 with Python 2.3 ? -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] Zope 2.7 beta 3
Thanks, now I am happy. What is runzope for ? should that not be eliminated ? Robert Am Dienstag, 11. November 2003 00:25 schrieb Chris McDonough: runzope never detaches from the terminal... use zopectl start instead. Unlike previous versions of Zope, 2.7 doesn't handle its own daemonizing. Instead it relies on an external program to do its daemonizing (Guido's zdaemon, which is invoked by zopectl). On Mon, 2003-11-10 at 14:57, robert wrote: Thank you very much, it worked perfectly. Now I have a problem/question: setting debug-mode off does not detach runzope from the terminal from which it was started. Is there some more settings I have to do? thanks Robert Am Montag, 10. November 2003 17:18 schrieb Tres Seaver: On Mon, 2003-11-10 at 11:15, robert wrote: great news. give him my congratulations . Is there a description someplace how to install 2.7 from CVS. $ cd /tmp $ cvs -d :pserver:[EMAIL PROTECTED]:/cvs-repository \ co -r Zope-2_7-branch -d Zope-2.7-head Zope $ cd Zope-2.7-head $ ./configure make make inplace Tres. -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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] Zope 2.7 beta 3
Hi there, there was talk about a 2.7 b3. I would like to test it out. We are going do deploy a new server by end of this month and I would like to have it running 2.7 (reckless I know, but that is how I am) -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] Zope 2.7 beta 3
great news. give him my congratulations . Is there a description someplace how to install 2.7 from CVS. Robert Am Montag, 10. November 2003 15:30 schrieb Casey Duncan: On Mon, 10 Nov 2003 10:27:10 +0100 robert [EMAIL PROTECTED] wrote: Hi there, there was talk about a 2.7 b3. I would like to test it out. We are going do deploy a new server by end of this month and I would like to have it running 2.7 (reckless I know, but that is how I am) Obi-wan would say, So was I, if you remember. I personally prefer the term leading edge over reckless ;^). As for beta 3, Brian Lloyd, our fearless release meister became the father of a new child over the weekend. He had originally promised to do the beta 3 release this week, but I'm not sure whether that will go forward or not at this point. I'm sure he will respond in email when he becomes available (sometime in 2008 ;^). -Casey -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] Zope 2.7 beta 3
Thank you very much, it worked perfectly. Now I have a problem/question: setting debug-mode off does not detach runzope from the terminal from which it was started. Is there some more settings I have to do? thanks Robert Am Montag, 10. November 2003 17:18 schrieb Tres Seaver: On Mon, 2003-11-10 at 11:15, robert wrote: great news. give him my congratulations . Is there a description someplace how to install 2.7 from CVS. $ cd /tmp $ cvs -d :pserver:[EMAIL PROTECTED]:/cvs-repository \ co -r Zope-2_7-branch -d Zope-2.7-head Zope $ cd Zope-2.7-head $ ./configure make make inplace Tres. -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] Zope doesn't know enough mime types.
would be nice if we had it in 2.7 Robert Am Donnerstag, 30. Oktober 2003 17:50 schrieb Fred L. Drake, Jr.: I wrote: Adding some configuration to Zope to identify additional mime.types files to load may be a good idea, and should not be too difficult. I've done this on the Zope 2 head; I don't know if it should be ported to the Zope 2.7 branch. Zope's configuration file can now have an additional key, mime-types, which specifies an additional file of MIME type associations to filename extensions. The key may be given more than once if desired. The MIME type associations are specified in the same way as in Apache's mime.types file. Each line in the file may be blank, a comment starting with #, or a type association: foo/bar ext foo/bat foo/baz ext1 ext2 ext3 -Fred -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] how can I prevent undo?
Thanks again, I now added def undoable_transactions(self, first_transaction=None, last_transaction=None, PrincipiaUndoBatchSize=None): return () to my class. This seems to work. Is this advisable or are there caveat to be avare of? Robert Am Sonntag, 26. Oktober 2003 21:49 schrieb Andreas Jung: By removing the Undo tab or by removing Un doSupport from the baseclasses of your objects? -aj --On Sonntag, 26. Oktober 2003 20:38 Uhr +0100 robert [EMAIL PROTECTED] wrote: Hi there, I have objects that are linked to an external database. When they are deleted, also the data in the external database is deleted. Now an undo is bad, because I then get an object with ab link to non existing data. I must therefore prevent undo. How can I do that? Thanks, Robert -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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] how can I prevent undo?
Hi there, I have objects that are linked to an external database. When they are deleted, also the data in the external database is deleted. Now an undo is bad, because I then get an object with ab link to non existing data. I must therefore prevent undo. How can I do that? Thanks, Robert -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] Post-Traversal Hook (+Post-Publication Hook)
what does publication mean in this context? Robert Am Freitag, 17. Oktober 2003 11:05 schrieb Christian Theune: Hi, I'm cleaning up the alternative BaseRequest for Zope 2.7 right now which implements a post traversal hook (which will go into 2.8) and discovered a small issue I would like to get some feedback from. Originally the patch called all registered methods after the user has been determined, but before eventually unauthorized is thrown. Therefore the SecurityManager already could deliver the user object, but it is not available within the REQUEST as the well known AUTHENTICATED_USER. Anyway, does anybody see a special reason to call the hooks a) before unauthorized b) after complete successful authorization I see that there could be two hooks make sense in there, but can't decide for a single one. (My tummy tells me to go for the one after complete authentication, so we have the complete REQUEST environment as in opposition to site access rules.) Also Dario Lopez-Kaesten came up with a request for a hook that is called after the publication. Is there anybody objecting such a post publication hook? Otherwise I would go for - implementing post-traversal variant b - implementing a post-publication hook Cheers, Christian PS: Looks a bit like I should write a proposal on this ...? -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] possible compromise
What I believe that happened in the case of the missuse of our servers is something like. - On server A we have zope running behind Apache as a proxy. Somebody found this out in an unnown (to me) way. - Our c-net was scanned for a MTA and server B was found (which only accepts mail from its own c-net - now the abuser sends http request to A requesting to forward to port 25 on server B. Since these requests ar now from within B's own c-net, they are accepted. Robert Am Dienstag, 14. Oktober 2003 21:51 schrieb Chris Pelton: / So, would anybody have any ideas how to determine if this might have // been compromised? Or is there a known mail relay exploit through zope // somehow? I've checked system binaries and everything seems fine. None of // the python files seem to have been changed since well before the // relaying started. / It might help to know the version of zope which you may be able to find it in the version.txt file distributed with zope releases. That said, there hasn't been a known relay exploit to the best of my knowledge, but there are many ways to implement a web application that sends mail in zope, and it wouldn't be at all surprising if the implementation of your system was vulnerable. Do you know enough about Zope to discuss the implementation of your web application? We can throw out a bazillion ideas but thats a painfully slow way to determine what really happened. Unfortunately I don't know much about zope. There are several version.txt files in the tree - ./lib/python/version.txt - yields Zope 2.2.5 (source release, python 1.5.2, linux2) but there is also a Zope-2.3.3-src directory, although I don't find any binaries in there that match what look to be the running binaries. The thing is, this machine had sendmail configure for no-relay, but there were several virtual hosts in apache, and the mail was coming from one of those hosts. I'm thinking they could have just taken advantage of some Zope functionality, not necessarily a break-in? Thanks again, Chris ___ 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 ) -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] possible compromise
Never heard of such an abuse neither. Only we are victim of one such. So I would be interessted in any findings Robert Am Dienstag, 14. Oktober 2003 03:46 schrieb Paul Winkler: On Mon, Oct 13, 2003 at 05:36:51PM -0700, Chris Pelton wrote: Hello, I'm trying to do some forensics on a redhat 6.2 box that was somehow turned into a mail relay and may have been compromised. The mail logs show the mail coming from an apache virtual host address, and this machine was running zope, and the list of hotfix files I see is: 5220 May 25 2001 Hotfix_2000-10-02.tar.gz 2800 May 25 2001 Hotfix_2000-10-11.tgz 3002 May 25 2001 Hotfix_2000-12-08.tgz 2839 May 25 2001 Hotfix_2000-12-15a.tgz 2386 May 25 2001 Hotfix_2000-12-18.tgz 1899 May 25 2001 Hotfix_2001-02-23.tgz 3292 May 25 2001 Hotfix_2001-03-08.tgz 2492 May 25 2001 Hotfix_2001-05-01.tgz if you're worried that one of those is a trojan, you could re-download the hotfixes here and use diff or cmp: http://zope.org/Products/Zope/swpackage_view So, would anybody have any ideas how to determine if this might have been compromised? Or is there a known mail relay exploit through zope somehow? never heard of one, but if you have a MailHost with wide open permissions somebody could pretty easily write a client script to abuse it. Not sure what version of zope this is That would be listed in the output on startup, and you can also check by visiting http://zope_server:zope_port/Control_Panel/manage_main -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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] xron does not work with python 2.2
Hi there, it seams that the Product XRON does not work with python 2.2. I can create an instance, however when I try to enter into it from the zmi, I get an error: The object at http://localhost:8080/sprint/scheduler has an empty or missing docstring. Objects must have a docstring to be published. When I run the same site with Python 2.13 everything is fine. What could be the reason for that? thanks Robert -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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] Add Plone Site - AttributeError
Hello, I've added Plone 1.0.5 to my Zope 2.5.1 setup running on Suse Linux. When I try to add a Plone site, I get a Zope Error: Error Type: AttributeError Error Value: get I also installed Zope 2.6.1 with CMF and Plone on a Windoz 98 box and I get the same error when adding a Plone Site. I have Zope running on port 8081. Does that have any effect? I've seen numerous postings and bug reports on this type of issue, but no solutions. Is there a solution? Thx, Bob V ___ 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 )
Re: [Zope-dev] help w/ LocalFS
Does the user zope is run as (normaly 'zope') have all the neccessary rights to access the files ? You can set the user zope is run under with the -u parameter when starting zope. Robert Am Sunday 07 September 2003 01:49 schrieb Roberto Benitez: I am trying to use LocalFS to access a directory in my linux server (zope running on same suse linux server) i am able to see the directory listing, but when i try to access any file i get the following error message The object at ../../5741.RPT has an empty or missing docstring. Objects must have a docstring to be published. i get the same error when attempting to access any file i also have a zope server runnin on a couple of other windows computers and it seems to work just fine. the LocalFS is of course treated like a local folder. i would appreciate any help on this issue __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ___ 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 ) -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] Strange bug(?) accessing File objects
I remember to have had this problem when accessing office files like *.doc's. It *think* it was a IE issue, that olny happend with particular IE versions. Robert Am Friday 05 September 2003 23:26 schrieb Dieter Maurer: Bjorn Stabell wrote at 2003-9-2 19:33 +0800: Has anyone encountered this problem: When accessing File objects that are not accessible to Anonymous (HTTP and WebDAV View permissions not given), the Basic HTTP Auth window pops up repeatedly even after the user has logged in using the cookie crumbler method, and the user has permissions to view the file. Clicking cancel actually lets the user view the file, but that's not an acceptable solution, of course. I see this behavior with Zope 2.5.1 2.6.1 (haven't tried 2.7b2 yet), and I seem to recall earlier versions as well. I could not reproduce your problem (Zope 2.6.2b2). However, I remember that I saw similar problem reports in the mailing list. You get the basic authentication when the permission requirements during request processing are stronger than that on the published object. It is unclear, however, why you see the file when you cancel the login dialog. Shane's VerboseSecurity Product may give some clues. Dieter ___ 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 ) -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] Help!!
What you see is not an error but a warning. It is not the reason why zope does not start up. What OS and what Zope Version are you using ? Robert Am Thursday 28 August 2003 18:30 schrieb Todd Loomis, \(SAIC\): Paul, Thanks, however I've searched the mailing lists and found nothing. Also I consider this an error when Zope will not startup! Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Winkler Sent: Thursday, August 28, 2003 12:18 PM To: [EMAIL PROTECTED] Subject: Re: [Zope-dev] Help!! On Thu, Aug 28, 2003 at 12:06:21PM -0400, Todd Loomis, (SAIC) wrote: All: I'm getting this error message every time I try to start Zope: /var/www/zope/lib/python/ts_regex.py:87: DeprecationWarning: the regex module is deprecated; please use the re module import regex, regsub #, Sync /usr/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module is deprecated; please use re.sub() DeprecationWarning) What gives, it was working fine then I got a call saying the site wasn't responding. So I restarted Zope and got this. Any help will be greatly appreciated. Please search the mailing list archives. This is not an error. -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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] error in BTreeFolder2
I tried to delete a couple of elements from a BTreeFolder2 and got the following traceback: Exception traceback Time2003/08/10 21:46:29.655 GMT+2 User Name (User Id) robert (robert) Request URL http://localhost:8080/Zehnder/sonntag/portal_memberdata/manage_delObjects Exception Type NameError Exception Value global name 'sys' is not defined Traceback (innermost last): * Module ZPublisher.Publish, line 98, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module OFS.ObjectManager, line 447, in manage_delObjects * Module Products.BTreeFolder2.BTreeFolder2, line 363, in _delObject NameError: global name 'sys' is not defined -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] why cant i import types
For security reasons many of the standard libraries are not allowd to be used in Zope. Types is one of them. You can declare a library as save for use in a python script. How I can not say without consulting the documentation. Robert Am Friday 15 August 2003 04:18 schrieb Declan Shanaghy: Can someone tell me why i cant import types into my python script in CMF? When i put either of the following lines as the first line of my script i get the error that follows from types import * - produces Error Type: ImportError Error Value: from types import * is not allowed from types import ListType - produces Error Type: ImportError Error Value: import of ListType from types is unauthorized. You are not allowed to access ListType in this context ___ 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 ) -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ 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 )
Re: [Zope-dev] Z2.7 ValueError: Cache values may only be in onecache
I have similar tracebacks sometimes when I try to reload a product. Restarting Zope allways helps. Robert Am Montag, 4. August 2003 05:15 schrieb Stuart Bishop: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm getting tracebacks like the following under Zope 2.7b1, but not in Zope 2.6b5. Can somebody please shed some light on what this error is trying to tell me, so I can work out if this is a Zope 2.7 bug or my own fault? Traceback (innermost last): Module ZPublisher.Publish, line 102, in publish Module Zope.App.startup, line 220, in commit Module ZODB.Transaction, line 233, in commit Module ZODB.Transaction, line 348, in _commit_objects Module ZODB.Connection, line 427, in commit - __traceback_info__: (('BTrees.IOBTree', 'IOBucket'), '\x00\x00\x00\x00\x00\x00\x00G', '') ValueError: Cache values may only be in one cache. The problem is intermittent. - -- Stuart Bishop [EMAIL PROTECTED] http://shangri-la.dropbear.id.au/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (Darwin) iD8DBQE/Lc/Jh8iUz1x5geARAnZVAJ9HPijFIBoYgwCwjrIGFOp3VOppwgCfXhvv OZC/ySC+jywzZvrQgYjeYbY= =j1/n -END PGP SIGNATURE- ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.python.org/mailman/listinfo/zope-announce http://mail.python.org/mailman/listinfo/zope ) -- mit freundlichen Grüssen Robert Rottermann www.redCOR.ch ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.python.org/mailman/listinfo/zope-announce http://mail.python.org/mailman/listinfo/zope )