Re: [Zope-dev] Zope 2.12 and Globals.DevelopmentMode
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hanno Schlichting wrote: > On Fri, Feb 5, 2010 at 2:35 PM, Sylvain Viollon wrote: >> Maybe I missed something, but it seems to me that >> Globals.DevelopmentMode in Zope 2.12 is always False, even if you >> start Zope in fg, or set debug-mode to on in the configuration file. > > This works for me and DevelopmentMode is set correctly. > > Make sure you don't try to get the value too early (like at module > scope import time) but after the server has actually started up. So > don't do: "from Globals import DevelopmentMode" but "import Globals; > Globals.DevelopmentMode". I think the exact timing of the startup > process is somewhat different compared to prior versions. There was never any guarantee that Globals would be fully popluated before the start of product initialization: third-party code needs to defer checking that flag at "import" time (which is the point of the pattern Hanno outlines). An even better pattern would probably be to avoid the Globals "dumping ground" altogether and use the configuration object directly: from App.config import getConfiguration config = getConfiguration() if config.debug_mode: Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkttFr8ACgkQ+gerLs4ltQ5gqQCeN168JLfr328HmkcBxaI8pHlj qs4AoIZO+ojZJ5MSXjZuxV7ipyjtdZAD =qr6k -END PGP SIGNATURE- ___ 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] Zope2 ZMI and HTML5
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roberto Allende wrote: > Regarding DTML... i wonder if it dtml purpose doesn't overlap with > tal/metal or even viewlets. If that's the case we wouldn't provide > 'One-- and preferably only one --obvious way to do it' and for non Dutch > newbies :P is kinda confusing because end up with situations like > 'you've to learn it but you won't use in-real-projects'. You don't need to learn DTML at all to work with Zope2 these days, unless you want to use ZSQL methods, which still rely on it for generating dynamic SQL. I haven't written a line of "new" DTML-as-presentation-markup in Zope for about nine years now. > So, wouldn't make sense to have DTML in an separated component and make > its use optional ?. Its use is already optional. There is relatively no cost to leaving it in the core, and a substantial downside (useless backward-compatibility breakage). I'm fine with the goal of removing the *use* of DTML within the ZMI as part of implementing a future-proofed replacement, but totally against the idea of ripping it out of the core. My opinion is also shaped by my experience of trying to break out the pieces of Zope2 into separate eggs, like the Acquisition / ExtensionClass / DateTime etc. eggs: there is too much low-level coupling of the DocumentTemplate code to other parts of the codebase to make that easy, even assuming it were desirable. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkttE/kACgkQ+gerLs4ltQ5/8wCbB3goYRSJK2VhGfvnqLYBRpHb KyMAoLLXAr0JApHtJTRF97AF2vKHXLBJ =6Z91 -END PGP SIGNATURE- ___ 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] Zope2 ZMI and HTML5
Lennart Regebro wrote: > On Thu, Feb 4, 2010 at 14:48, Charlie Clark > wrote: >> This is something I would like to contribute to as it matches my skillset >> and interests pretty well. From the responses so far it seems that most >> people are so used to the ZMI that no change feels necessary and, let's >> face it, it works well enough. However, for new people coming to Zope the >> 1990nish of it is a bit off-putting: we've got all this cool technology >> underneath but you wouldn't believe it when you look at it. > > Well, getting and iframe implementation with some really nice looking > CSS would be cool, indeed. I don't even think you need to get rid of > DTML for that. > I agree. I was asking for 2 different things: One to improve ZMI and the other one about DTML. There's not much to speak about ZMI because we should just do it, in particular i'm interested do smt like that, so i could work with Charlie Clark and any other person interested, until we've something to show, then ask for feedback and so on. Regarding DTML... i wonder if it dtml purpose doesn't overlap with tal/metal or even viewlets. If that's the case we wouldn't provide 'One-- and preferably only one --obvious way to do it' and for non Dutch newbies :P is kinda confusing because end up with situations like 'you've to learn it but you won't use in-real-projects'. So, wouldn't make sense to have DTML in an separated component and make its use optional ?. No big deal, I'm just curious what do you think about it and it is an excuse to ask about existing ways to handle stuff like that. Kind Regards r. -- Let's promote Plone Worldwide: http://worldploneday.org - April 28th 2010. ___ 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] How to use Tramline
You could try the hurry.file package, by Martijn Faassen. It will get you started with both a file item and a Trameline support. If you use Grok and if you deploy using WSGI, then, I can also point you toward gp.fileupload it's a WSGI middleware that will do exactly what you want. it's much easier to setup than trameline. Visit #Grok for more details, if you need specific Grok help. - Souheil 2010/2/5 Hannes : > Hi Zopers, > > I want to get Tramline working, but I definitely need your help! The > documentation on this is not complete at all > > Maybe someone can give me some (more) complete stuff about: > > - Do I need to inherit from some Tramline class to use it? I saw > something like TramlineBase, but I couldn't find that class in the > Tramline sources > > - a short step-by-step guide, starting with > (1) form submission > (2) how do I get the "remote file path"? > (3) how does it work with the two directories "repository" and > "upload". Is this done automatically? > (4) how do I actually store the "file ID" in the ZODB? (I want to > store the uploaded files on the filesystem, not inside ZODB) > > I already read the stuff about attTramline from Plone and the HurryFile > documentation, but I didn't understood it. > > By the way, I'm working with Grok, but there was nobody who could help > me > > > thanks a lot in advance. > ___ > Zope-Dev maillist - zope-...@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 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] How to use Tramline
Hi Zopers, I want to get Tramline working, but I definitely need your help! The documentation on this is not complete at all Maybe someone can give me some (more) complete stuff about: - Do I need to inherit from some Tramline class to use it? I saw something like TramlineBase, but I couldn't find that class in the Tramline sources - a short step-by-step guide, starting with (1) form submission (2) how do I get the "remote file path"? (3) how does it work with the two directories "repository" and "upload". Is this done automatically? (4) how do I actually store the "file ID" in the ZODB? (I want to store the uploaded files on the filesystem, not inside ZODB) I already read the stuff about attTramline from Plone and the HurryFile documentation, but I didn't understood it. By the way, I'm working with Grok, but there was nobody who could help me thanks a lot in advance. ___ 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] Reminder : zope.app.authentication
I worked last month on the package `zope.app.authentication` that is still very monolithic. As a first step to refactor it and in order to cut dependencies, I created and released the pluggable auth utility in a standalone package : http://pypi.python.org/pypi/zope.pluggableauth This package, now, has to be used by zope.app.authentication. I did that in a branch : http://svn.zope.org/repos/main/zope.app.authentication/branches/zope.pluggableauth-trollfot/ Everything work as expected. I only removed what now lies in zope.pluggableauth and used import to preserve the backward compatibility. I didn't remove or alter any tests, only to adapt the __repr__ of some classes that are now moved. Everything seems OK for a release. So, the following steps would be : merge the branch with the trunk, if there no complains. Then, release the new trunk as a 3.7.0 version. Any feedback or insight is welcome. If it's possible, I like to get the ownership on the zope.app.authentication so I can proceed with the release. Thank you - Souheil ___ 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] Releasing Zope packages
That is already OK, i meant something more... legal ? About the headers, the licence, etc. This is where I really don't want to screw up 2010/2/5 Baiju M : > On Fri, Feb 5, 2010 at 7:57 PM, Souheil CHELFOUH wrote: >> Hello, >> >> I'm about to release zope.pluggableauth. >> Is there a comprehensive documentation listing all the needed steps ? > > http://docs.zope.org/zopetoolkit/process/releasing-software.html > > Regards, > Baiju M > ___ 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] Zope2 ZMI and HTML5
On Thu, Feb 4, 2010 at 14:48, Charlie Clark wrote: > This is something I would like to contribute to as it matches my skillset > and interests pretty well. From the responses so far it seems that most > people are so used to the ZMI that no change feels necessary and, let's > face it, it works well enough. However, for new people coming to Zope the > 1990nish of it is a bit off-putting: we've got all this cool technology > underneath but you wouldn't believe it when you look at it. Well, getting and iframe implementation with some really nice looking CSS would be cool, indeed. I don't even think you need to get rid of DTML for that. -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64 ___ 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] Releasing Zope packages
On Fri, Feb 5, 2010 at 7:57 PM, Souheil CHELFOUH wrote: > Hello, > > I'm about to release zope.pluggableauth. > Is there a comprehensive documentation listing all the needed steps ? http://docs.zope.org/zopetoolkit/process/releasing-software.html Regards, Baiju M ___ 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] Releasing Zope packages
Hello, I'm about to release zope.pluggableauth. Is there a comprehensive documentation listing all the needed steps ? As I don't want to miss my first zope release, I'd like to be sure. For instance, the headers specify "A copy of the ZPL should accompany this distribution.", though i never saw this ZPL doc inside any of the zope.* packages. I don't want to delay this for too long, so I'll eagerly wait for your answers. - Souheil ___ 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] Zope 2.12 and Globals.DevelopmentMode
On Fri, Feb 5, 2010 at 2:35 PM, Sylvain Viollon wrote: > Maybe I missed something, but it seems to me that > Globals.DevelopmentMode in Zope 2.12 is always False, even if you > start Zope in fg, or set debug-mode to on in the configuration file. This works for me and DevelopmentMode is set correctly. Make sure you don't try to get the value too early (like at module scope import time) but after the server has actually started up. So don't do: "from Globals import DevelopmentMode" but "import Globals; Globals.DevelopmentMode". I think the exact timing of the startup process is somewhat different compared to prior versions. Hanno ___ 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] ZODB issue
On Thu, Feb 4, 2010 at 8:00 PM, Roger wrote: ... > But probably this is a problem and should't get released as is. > Any hints? You need to rerun your buildout. There are new (C) methods on fsBuckets. Jim -- Jim Fulton ___ 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] Zope 2.12 and Globals.DevelopmentMode
Hello, Maybe I missed something, but it seems to me that Globals.DevelopmentMode in Zope 2.12 is always False, even if you start Zope in fg, or set debug-mode to on in the configuration file. And I tried App.config.getConfiguration().debug_mode, it's the same. Did I miss something ? There is a new (working) way to know if Zope is running in debug mode or not ? Best regards, Sylvain Viollon -- Sylvain Viollon -- Infrae t +31 10 243 7051 -- http://infrae.com Hoevestraat 10 3033GC Rotterdam -- The Netherlands ___ 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] Zope Tests: 6 OK
Summary of messages to the zope-tests list. Period Thu Feb 4 12:00:00 2010 UTC to Fri Feb 5 12:00:00 2010 UTC. There were 6 messages: 6 from Zope Tests. Tests passed OK --- Subject: OK : Zope-2.10 Python-2.4.6 : Linux From: Zope Tests Date: Thu Feb 4 20:37:42 EST 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-February/013509.html Subject: OK : Zope-2.11 Python-2.4.6 : Linux From: Zope Tests Date: Thu Feb 4 20:39:42 EST 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-February/013510.html Subject: OK : Zope-2.12 Python-2.6.4 : Linux From: Zope Tests Date: Thu Feb 4 20:41:42 EST 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-February/013511.html Subject: OK : Zope-2.12-alltests Python-2.6.4 : Linux From: Zope Tests Date: Thu Feb 4 20:43:42 EST 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-February/013512.html Subject: OK : Zope-trunk Python-2.6.4 : Linux From: Zope Tests Date: Thu Feb 4 20:45:42 EST 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-February/013513.html Subject: OK : Zope-trunk-alltests Python-2.6.4 : Linux From: Zope Tests Date: Thu Feb 4 20:47:42 EST 2010 URL: http://mail.zope.org/pipermail/zope-tests/2010-February/013514.html ___ 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] lovely.remotetask
Hi, Jean-Francois Roche and I need to port lovely.remotetask to Zope 2. We have started to look at the existing branch port-for-zope210. In order to clean the branch, we made a buildout to run its tests. Doing this, we found out that lovely.remotetask has some ui components that depends heavily on zope.app. We would like to refactor the package into two packages : The first one would hold backend components and would depend on zope.app as little as possible. (z3c.remotetask.core) The second one would hold the ui components. (z3c.remotetask.browser) We would also refactor lovely.remotetask to depend on the new packages. Comments welcome. PS: "Lovely people", do you mind that the new packages would move to z3c namespace iow that it looses the lovely namespace ? -- Godefroid Chapelle (aka __gotcha) http://bubblenet.be ___ 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 )