RE: [Zope-dev] Zope 2.8.0b2: WinBuilder issue
Morning, Am Donnerstag, den 26.05.2005, 09:03 +1000 schrieb Mark Hammond: What path does the final Inno file refer to? Is the entire path missing, or just that file missing from that path? IIRC, we explode the pywin32 installer and grab the file from there. I'm pretty sure that file is in pywin32, but can't speculate why it fails to end up where Inno wants it. It doesn't look like that file is around anywhere in the tmp,src or build directories: [EMAIL PROTECTED] /cygdrive/c/zope/build_28 $ find . -name win*.exe ./build/bin/Lib/site-packages/win32popenWin9x.exe ./src/Python-2.3.5/Lib/distutils/command/wininst.exe ./src/Python-2.3.5-extract/wininst.exe ./src/pywin32-204.win32-py2.3/PLATLIB/win32/win32popenWin9x.exe I'm running the whole thing again to check for possible earlier errors that eventually got hidden... Christian -- gocept gmbh co. kg - schalaunische str. 6 - 06366 koethen - germany www.gocept.com - [EMAIL PROTECTED] - phone +49 3496 30 99 112 - fax +49 3496 30 99 118 - zope and plone consulting and development signature.asc Description: This is a digitally signed message part ___ 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.0b2: WinBuilder issue
Am Donnerstag, den 26.05.2005, 09:03 +1000 schrieb Mark Hammond: What path does the final Inno file refer to? Is the entire path missing, or just that file missing from that path? IIRC, we explode the pywin32 installer and grab the file from there. I'm pretty sure that file is in pywin32, but can't speculate why it fails to end up where Inno wants it. It doesn't look like that file is around anywhere in the tmp,src or build directories: [EMAIL PROTECTED] /cygdrive/c/zope/build_28 $ find . -name win*.exe ./build/bin/Lib/site-packages/win32popenWin9x.exe ./src/Python-2.3.5/Lib/distutils/command/wininst.exe ./src/Python-2.3.5-extract/wininst.exe ./src/pywin32-204.win32-py2.3/PLATLIB/win32/win32popenWin9x.exe Your original mail said: The InnoSetup complained about pythonservice.exe to be missing during packaging the installer. Any ideas? PythonService.exe wont match win*.exe Mark ___ 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.0b2: WinBuilder issue
Am Donnerstag, den 26.05.2005, 16:54 +1000 schrieb Mark Hammond: PythonService.exe wont match win*.exe Yeah, right. Stupid computers ... ;) So this file of course exists, in a different path. Inno expected \build \bin\lib\site-packages\win32\PythonService.exe and it is in \build\bin \lib\site-packages\PythonService.exe Should I change Inno's reference (have to do that for the b2 release) or should it go into a different path in future? Additionally, it then asked for PyWinTypes23.dll which is in ./build/bin/Lib/site-packages/PyWinTypes23.dll instead of ./build/bin/Lib/site-packages/pywin32_system32/PyWinTypes23.dll. Looks like a couple of things are ending up in the wrong places ... Cheers, Christian -- gocept gmbh co. kg - schalaunische str. 6 - 06366 koethen - germany www.gocept.com - [EMAIL PROTECTED] - phone +49 3496 30 99 112 - fax +49 3496 30 99 118 - zope and plone consulting and development signature.asc Description: This is a digitally signed message part ___ 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.0b2: WinBuilder issue
So this file of course exists, in a different path. Inno expected \build \bin\lib\site-packages\win32\PythonService.exe and it is in \build\bin \lib\site-packages\PythonService.exe Should I change Inno's reference (have to do that for the b2 release) or should it go into a different path in future? Additionally, it then asked for PyWinTypes23.dll which is in ./build/bin/Lib/site-packages/PyWinTypes23.dll instead of ./build/bin/Lib/site-packages/pywin32_system32/PyWinTypes23.dll. Looks like a couple of things are ending up in the wrong places ... This sounds alot like a win32all package, not a pywin32 one. Looking inside the pywin32 one: % unzip -l pywin32-204.win32-py2.3.exe | grep pythonservice warning [pywin32-204.win32-py2.3.exe]: extra 63975 bytes at beginning or within zipfile (attempting to process anyway) 20480 04-12-05 18:11 PLATLIB/win32/pythonservice.exe % unzip -l pywin32-204.win32-py2.3.exe | grep 23.dll warning [pywin32-204.win32-py2.3.exe]: extra 63975 bytes at beginning or within zipfile (attempting to process anyway) 311296 04-12-05 18:09 PLATLIB/pywin32_system32/pythoncom23.dll 98304 04-12-05 18:08 PLATLIB/pywin32_system32/pywintypes23.dll ie, exactly where you say Inno wants them. Are you sure you are using pywin32-204.win32-py2.3.exe from sourceforge? Mark ___ 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] RAMcache and container vs. context
Paul Winkler wrote: I kinda wish the RAMCache manager allowed other things than REQUEST variables for differentiation. Arbitrary TALES expressions would be nice. Then we could get rid of this hard-coded gunk and get the same effect by having context/getPhysicalPath as one of the expressions. But of course then you'd have the opportunity to kill your cache performance by making the expressions too expensive. Ah well, TANSTAAFL and all that. I'll probably just drop the idea. I still think it's worth it. Crippling everyone on the basis that stupid people can hurt themselves is not good logic in my books ;-) If you could chuck this as a feature request in the collector and assign it to me, I'd love to work on it if I ever find the time... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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] RAMcache and container vs. context
On Thu, May 26, 2005 at 09:12:30AM +0100, Chris Withers wrote: If you could chuck this as a feature request in the collector and assign it to me, I'd love to work on it if I ever find the time... Done. http://www.zope.org/Collectors/Zope/1795 -- Paul Winkler http://www.slinkp.com ___ 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] DTML in Zope 2 vs Zope 3
David H wrote: I understand that DTML will be in Zope 3. My question is, do namespaces and context also migrate to Zope 3? If not, could break existing code? I would suggest that the chances of any DTML from Zope 2 working in Zope 3 are slim, at best ;-) Why DTML is IN Zope 3 in the first place is totally beyond me... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Finding an object in a folder
Dieter Maurer wrote: By the way, it is as nasty in Python as it is in DTML. I agree with we disagree, I hopethat doesn't cause offence ;-) Worse still, you use hasattr with ZODB... hastattr swallows all exceptions, including ConflictErrors, and especially in this example that would be a bad thing... Again, the correct way to approach this problem is not to ban hasattr from thousands of places but to monkey patch __builtin__.hasattr such that it behaves in a Zope compatible way. It doesn't matter what is correct and what isn't correct here, you're handing out advice that will break when a person tries it and they least expect it to break. That's not a nice thing to do... I strongly argue against it. Fix hasattr in the Zope context, instead! Make it so! :-) if getattr(thefolder.aq_inner.aq_explicit,the_id,None): You are aware that this is in general *NOT* an emulation of hasattr. I didn't say it was ;-) It may fail e.g. for properties. How would it fail for properties? And it would be so easy to fix hasattr ;-) then why haven't you done it? ;-) Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] UnicodeDecodeError
Joern Wallstabe wrote: Seem Zopes ZPT system is trying to do the encoding, depending on on setHeader() method. So if this header is set you can simply return unicode strings. It's actually lower down in the stack... ZPublisher encodes the response, and has a stoopid hard coded default of 'latin-1' that it returns ;-) cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: HTML post processing in Zope
Cyrille Bonnet wrote: It works for me so far. But if you have specific examples that I can use to improve the filter, they would be very welcome. I think a filter is a totally abhorent way of attempting to tackle this... * replace html ... with html (remove the namespace information) * remove the login portlet: Plone uses form parameters __ac_name and __ac_password, which the W3C validator rejects as invalid. Tee hee, so much for Plone's amazing standards compliance ;-) I have been customising the templates in the past and it takes a lot of work, on many templates, all over the place. Well, your filter only changes things that are in main_template... In addition, I'd like to keep the content stored in the ZODB as XHTML. Why? And, last but not least, I can upgrade Plone without having to rework all my templates now. Bwahahaha... the other great myth ;-) Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Hiding HTML URL
David H wrote: a) It's grim to debug Chris, do you really depend on their users to report URLS to support when things go wrong? I use exceptions, logs and auto-emailing of exceptions as a work around - what was I thinking! :-) Yes, well, I wrote MailingLogger 5 years ago, so I think I have a bit of experience with this... Now, I want as much context as possible from any error report. By having one url, which is a fake nasty hack anyway, you cut off one avenue of context for feedback... b) (stable url will ...) confuse your users even more when it goes wrong. but the thingy in the box is still the same, why is it not working Chris, this may come as a shock to you, but my users say something incomprehensible like Purchase Order Edit is not working or COA Maintenance needs A, B and C. Are you seriously telling me this helps you out more than if you ask a user to paste the URL into the url box in your issue tracker and they put: http://www.example.com/purchaseorders/0027/edit?approved=1 rather than: http://www.example.com/ Being able to map a URL directly to an object traversal and method is one of the core ideas behind Zope, you're deliberately blowing this away... Somehow I know what they are talking about - and so do they. Yes, well, I prefer specific information rather than somehow ;-) (2) Then, I said If there are superior patterns (for Business Apps) Im the first that wants to see them and this is a welcome discussion And you asserted ... there are *many* but that are beyond the scope of this list Simple disagreement! I feel its a neglected subject and should be on this list. Not on this list, there are plenty of patterns lists, books, etc... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Where can I found hot_plug function of zpi.zope ?
Josef Meile wrote: and in windows, just use the Built-in search feature and introduce as filename *.py and in the text field insert def hot_plug Sadly, as of Windows XP, this is broken beyond use: it simply doesn't find some stuff in certain files, like .py files, for example :-( Install cygwin and use grep there, if you really have to stay on windows ... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to use ParsedXML
Jason Leach wrote: hi, If I have a ParsedXML document with the following: ?xml version=1.0? faq title=A Sample FAQ entry questionTo be or not to be?/question answerThat is the question./answer /entry entry questionThe question of life the universe and everything?/question answer42/answer /entry /faq p tal:content=here/myxmldoc/entry/question/p Try: p tal:content=here/myxmldoc/faq/0/entry/0/question/nodeValue/question/p Or some such... I remember reading docs for this so you'll have to have a look or resort to DOM-based traversal like I did ;-) cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Underscoring Inaugural Address
Dan Pozmanter wrote: Hey, I am working on a subversion interface for zope, and our repositories are rife with files like __init__.py. For something like that, I'd head for Zope 3... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DTML in Zope 2 vs Zope 3
Yellow, I think because of lazy people like me that prefer to use DTML in a fast way than go into a deep Python level to get the job done... I know that, eventually, one of these days I'll have to move on to Python only but until that day comes... DTML and a little bit of Python where needed suits me fine! :-) Regards Hugo On 5/25/05, Chris Withers [EMAIL PROTECTED] wrote: David H wrote: I understand that DTML will be in Zope 3. My question is, do namespaces and context also migrate to Zope 3? If not, could break existing code? I would suggest that the chances of any DTML from Zope 2 working in Zope 3 are slim, at best ;-) Why DTML is IN Zope 3 in the first place is totally beyond me... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Hugo Ramos - [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Accessing file object to upload in an external method
Hi, I'm new in zope and I'm trying to upload a file on zope using localfs. I already done it through a little basic html page + python script. I would like now use it in an external method. Here is the line added in the external method: self.dir_filesystem.manage_upload(file=self.zipfile) zipfile is the name of the file in the html form (File INPUT TYPE=file NAME=zipfile SIZE=25 VALUE=) I got the following error: File D:\\D-Side/qross/zope_gui\Extensions\Project.py, line 31, in PrepareToCreateOrUpdateObject self.dir_filesystem.manage_upload(file=self.zipfile) exceptions.AttributeError: zipfile I'm quite sure that my error lies in the way I reference 'zipfile' but I don't know how to proceed Thanks for your help Simon ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DTML in Zope 2 vs Zope 3
Hugo Ramos wrote: Yellow, I think because of lazy people like me that prefer to use DTML in a fast way than go into a deep Python level to get the job done... I know that, eventually, one of these days I'll have to move on to Python only but until that day comes... DTML and a little bit of Python where needed suits me fine! :-) Regards Hugo Hugo, I figured as a dtml wiz a few years ago. Now I can't image doing w/out python scripts and suddenly DTML gives me a headache. I do think that DTML deserves a Hall of Fame Award but its time to move on. David ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DTML in Zope 2 vs Zope 3
Yellow, I have the same feeling... Python should be the primary language used in Zope but let's not just cut the support on DTML leaving thousands out there spinning around and having to go into Python as fast as they can because DTML is not supported anymore. Changes take time... Getting used to Python only in Zope takes time... and I'm not so sure the employers out there are that kind allowing everybody to take time making the move. Regards Hugo On 5/26/05, David H [EMAIL PROTECTED] wrote: Hugo Ramos wrote: Yellow, I think because of lazy people like me that prefer to use DTML in a fast way than go into a deep Python level to get the job done... I know that, eventually, one of these days I'll have to move on to Python only but until that day comes... DTML and a little bit of Python where needed suits me fine! :-) Regards Hugo Hugo, I figured as a dtml wiz a few years ago. Now I can't image doing w/out python scripts and suddenly DTML gives me a headache. I do think that DTML deserves a Hall of Fame Award but its time to move on. David -- Hugo Ramos - [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] LDAPUserFolder at Zope root
Hello, this might be trivial but I just can't find a way to do it. How does one replace the initial UserFolder at Zope root with a LDAPUSerFolder ? I tried the dummy way : delete the acl_users with an intent to instanciate a LDAPUSerFolder afterwards but that locked me out in a way I could do nothing but recreate a new Zope instance... skip-authentication-checking in etc/zope.conf didn't help... Zope 2.7 debian testing package. Oscar ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] LDAPUserFolder at Zope root
Oscar Figueiredo wrote: I tried the dummy way : delete the acl_users with an intent to instanciate a LDAPUSerFolder afterwards but that locked me out in a way I could do nothing You need to log in as the emergency user, delete the old acl-users, instantiate the new LDAPUserFolder, and then logout and log in again as someone from the LDAPUserFolder who has Manager privileges (just make sure that such a user exists!). If any problems ever arise with the LDAPUserFolder, you'll need to log in as the emergency user in order to fix them. HTH, JZ ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Where can I found hot_plug function of zpi.zope ?
There is also a wingrep freeware utility. But it def. IS broken in native windows. bobb - Original Message - From: Chris Withers [EMAIL PROTECTED] To: Josef Meile [EMAIL PROTECTED] Cc: KLEIN Stéphane [EMAIL PROTECTED]; zope@zope.org Sent: Wednesday, May 25, 2005 4:15 PM Subject: Re: [Zope] Re: Where can I found hot_plug function of zpi.zope ? Josef Meile wrote: and in windows, just use the Built-in search feature and introduce as filename *.py and in the text field insert def hot_plug Sadly, as of Windows XP, this is broken beyond use: it simply doesn't find some stuff in certain files, like .py files, for example :-( Install cygwin and use grep there, if you really have to stay on windows ... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Finding an object in a folder
On Wed, May 25, 2005 at 09:03:13PM +0100, Chris Withers wrote: if getattr(thefolder.aq_inner.aq_explicit,the_id,None): You are aware that this is in general *NOT* an emulation of hasattr. I didn't say it was ;-) It may fail e.g. for properties. How would it fail for properties? Well, it doesn't distinguish between an attribute which doesn't exist and an attribute which has any false value. This makes it unsuitable as a hasattr() replacement IMHO. It feels kind of hacky, but for this kind of thing I've used the marker pattern that you find throughout the Zope source: marker = () if getattr(some_object, marker) is not marker: ... -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Namespace for PythonScript
Hello, If a PythonScript is called from a Page Template, how can it access the variables defined using: tal:define=global ... / in the calling script? Of course, one can pass the variables to the PythonScript explicitly as parameters, but is there any other way to let the PythonScript to easily access the name space of its calling page template? Hong Yuan ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Uploading rst docs Put_factory
I want to upload a restructured text (rst) document to my Zope server via FTP and have its content type recognized. I understand that I need to make an entry in PUT_factory.py but I need some guidance here. The following attempt didn't have any effect (that is, the type of the uploaded file is still just 'text/plain'): elif typ.endswith('rst'): ob= ReStructuredTextDocument(name) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Where can I found hot_plug function of zpi.zope ?
Sadly, as of Windows XP, this is broken beyond use: it simply doesn't find some stuff in certain files, like .py files, for example :-( Install cygwin and use grep there, if you really have to stay on windows There is no need of installing that big monster :-). You can also install grep for windows: http://gnuwin32.sourceforge.net/packages/grep.htm or MSYS, which also has a grep utility and is even smaller than cygwin, which I think isn't worth to install if you only want to use the grep utility. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 2.7.2 with Ape 1.0 installed in root, fails to restart, without any usefull logging, after adding a local role
Cool. Good luck. Let me know if you need a tester. ;) Tim Shane Hathaway wrote: Tim Connor wrote: Thanks, Shane. That fixes the problem of Zope not starting, and better than the other syntax I tried, but it still doesn't fix the core problem. My root Ape installs have issues with adding a local role, as then the default roles get axed. If you add this fix then Zope re-adds Owner (and Authenticated, as you need to duplicate the fix a couple lines lower) during the start-up, but not Manager - and they are not really added, but sort of hacked in by the start-up code. Shouldn't Ape be somehow dealing with this exact situation anyways, or is there just something wrong with my installs? I'll look at it. Ape hasn't been tested with the most recent versions of Zope 2.7. Shane ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DTML in Zope 2 vs Zope 3
I am just curious, why is DTML not good? It does 9 out of 10 things I want quite easily. From my perspective, I really dont want to learn new ways of doing things if this works. I also have no desire to do templating. I can see the need for it in a large development shop,but for me, a 1 guy operation, I have no desire to complicate things. DTML works so easy for me. I do use Python scripts here and there for small and odd things that would be difficult or impossible to do in DTML, but like I said, that's maybe only 10% max of the functionality that I need to provide. (probably 5-6%) Having to move everything in Python is a hassle that I dont plan on doing for a few years. I'll just keep using Zope 2. I'd also be curious to know from all you other developers, what percentage of tasks that you need to perform or functionality you need to provide can be provided simply with DTML? Like for me, I can do quickly and easily do 90% of what I need in DTML. Is DTML really that much harder to use? I understand the whole idea of separating the logic and the presentation, and I guess, is that part of the reason why DTML is not as good? But, for me, that separation is more complicated. DTML is easier for me. (partly because I know it) I dont know, DTML and the everythings an object concept in Zope are the very things that make Zope so attractive for a small time operator like me. I hate to see them deprecated just because it doesnt work for the larger companies out there. Of course, I may be totally ignorant about all this, huh? Anyway, starting to ramble... Thanks for any thoughts. Greg On 5/26/05, Hugo Ramos [EMAIL PROTECTED] wrote: Yellow, I have the same feeling... Python should be the primary language used in Zope but let's not just cut the support on DTML leaving thousands out there spinning around and having to go into Python as fast as they can because DTML is not supported anymore. Changes take time... Getting used to Python only in Zope takes time... and I'm not so sure the employers out there are that kind allowing everybody to take time making the move. Regards Hugo On 5/26/05, David H [EMAIL PROTECTED] wrote: Hugo Ramos wrote: Yellow, I think because of lazy people like me that prefer to use DTML in a fast way than go into a deep Python level to get the job done... I know that, eventually, one of these days I'll have to move on to Python only but until that day comes... DTML and a little bit of Python where needed suits me fine! :-) Regards Hugo Hugo, I figured as a dtml wiz a few years ago. Now I can't image doing w/out python scripts and suddenly DTML gives me a headache. I do think that DTML deserves a Hall of Fame Award but its time to move on. David -- Hugo Ramos - [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) -- Greg Fischer 1st Byte Solutions http://www.1stbyte.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: HTML post processing in Zope
Chris Withers wrote: Cyrille Bonnet wrote: It works for me so far. But if you have specific examples that I can use to improve the filter, they would be very welcome. I think a filter is a totally abhorent way of attempting to tackle this... OK, but again, if you have a better idea, it is welcome. Modifying 12 templates does not look much better to me. * replace html ... with html (remove the namespace information) * remove the login portlet: Plone uses form parameters __ac_name and __ac_password, which the W3C validator rejects as invalid. Tee hee, so much for Plone's amazing standards compliance ;-) Looking closer, it was actually the ids that were causing the problem. Ids can't start with _ in HTML 4.01 but it is perfectly legitimate in XHTML. So, Plone is compliant with XHTML. I have been customising the templates in the past and it takes a lot of work, on many templates, all over the place. Well, your filter only changes things that are in main_template... ??? The filter runs on the HTTPResponse object, thus changing all the HTML output, not just the ouput from main_template. In addition, I'd like to keep the content stored in the ZODB as XHTML. Why? Well, looking forward, if the NZ government guidelines finally support XHTMl, we'll just need to remove the filter. In addition, we want to be able to transform the content with XSL transformations. Finally, Kupu and Epoz are good at producing XHTML, but don't support HTML 4.01. And, last but not least, I can upgrade Plone without having to rework all my templates now. Bwahahaha... the other great myth ;-) Before, i had to modify 10-12 templates at least. Between Plone 2.0.4 and 2.0.5, these templates got changed and I had to spend 20 hours or so reworking the HTML ouput and testing. Now, when we move to Plone 2.1, I hope to do no work at all. I don't think it is a myth :-) Cyrille ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Finding an object in a folder
Well, it doesn't distinguish between an attribute which doesn't exist and an attribute which has any false value. This makes it unsuitable as a hasattr() replacement IMHO. But you're asking if the object posesses an attribute, not any question about the value of the object. I think returning false if the value is false is potentially dangerous - I may want to retrieve a false value. -- Phillip Hutchings http://www.sitharus.com/ [EMAIL PROTECTED] / [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Finding an object in a folder
On Fri, May 27, 2005 at 09:20:52AM +1200, Phillip Hutchings wrote: Well, it doesn't distinguish between an attribute which doesn't exist and an attribute which has any false value. This makes it unsuitable as a hasattr() replacement IMHO. But you're asking if the object posesses an attribute, not any question about the value of the object. I think returning false if the value is false is potentially dangerous - I may want to retrieve a false value. But what? You just said the same thing that I said :-) -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Namespace for PythonScript
Hong Yuan wrote: If a PythonScript is called from a Page Template, how can it access the variables defined using: tal:define=global ... / in the calling script? Of course, one can pass the variables to the PythonScript explicitly as parameters, but is there any other way to let the PythonScript to easily access the name space of its calling page template? I very much doubt it. Pass it to the script, which is the right way. --jcc -- Building Websites with Plone http://plonebook.packtpub.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] LDAPUserFolder at Zope root
Oscar Figueiredo wrote: this might be trivial but I just can't find a way to do it. How does one replace the initial UserFolder at Zope root with a LDAPUSerFolder ? I tried the dummy way : delete the acl_users with an intent to instanciate a LDAPUSerFolder afterwards but that locked me out in a way I could do nothing but recreate a new Zope instance... skip-authentication-checking in etc/zope.conf didn't help... Do not do that. You don't want to get locked out of your Zope because of LDAP problems. If you must have several other folders share a user folder other than the default, create a folder that contains everything. / /acl_users (ZODB) /root /root/acl_users (LDAP) /root/app1 /root/app2 --jcc -- Building Websites with Plone http://plonebook.packtpub.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Finding an object in a folder
On 27/05/05, Paul Winkler [EMAIL PROTECTED] wrote: On Fri, May 27, 2005 at 09:20:52AM +1200, Phillip Hutchings wrote: Well, it doesn't distinguish between an attribute which doesn't exist and an attribute which has any false value. This makes it unsuitable as a hasattr() replacement IMHO. But you're asking if the object posesses an attribute, not any question about the value of the object. I think returning false if the value is false is potentially dangerous - I may want to retrieve a false value. But what? You just said the same thing that I said :-) Sorry, shouldn't reply to things at 9am ;) Anyway, I agree with you, it is broken as the distinction is critical. -- Phillip Hutchings http://www.sitharus.com/ [EMAIL PROTECTED] / [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DTML in Zope 2 vs Zope 3
Greg Fischer wrote: I am just curious, why is DTML not good? It does 9 out of 10 things I want quite easily. From my perspective, I really dont want to learn new ways of doing things if this works. I also have no desire to do templating. I can see the need for it in a large development shop,but for me, a 1 guy operation, I have no desire to complicate things. DTML works so easy for me. I do use Python scripts here and there for small and odd things that would be difficult or impossible to do in DTML, but like I said, that's maybe only 10% max of the functionality that I need to provide. (probably 5-6%) Having to move everything in Python is a hassle that I dont plan on doing for a few years. I'll just keep using Zope 2. I'd also be curious to know from all you other developers, what percentage of tasks that you need to perform or functionality you need to provide can be provided simply with DTML? Like for me, I can do quickly and easily do 90% of what I need in DTML. Is DTML really that much harder to use? I understand the whole idea of separating the logic and the presentation, and I guess, is that part of the reason why DTML is not as good? But, for me, that separation is more complicated. DTML is easier for me. (partly because I know it) I dont know, DTML and the everythings an object concept in Zope are the very things that make Zope so attractive for a small time operator like me. I hate to see them deprecated just because it doesnt work for the larger companies out there. Of course, I may be totally ignorant about all this, huh? Anyway, starting to ramble... Thanks for any thoughts. Greg On 5/26/05, Hugo Ramos [EMAIL PROTECTED] wrote: Yellow, I have the same feeling... Python should be the primary language used in Zope but let's not just cut the support on DTML leaving thousands out there spinning around and having to go into Python as fast as they can because DTML is not supported anymore. Changes take time... Getting used to Python only in Zope takes time... and I'm not so sure the employers out there are that kind allowing everybody to take time making the move. Regards Hugo On 5/26/05, David H [EMAIL PROTECTED] wrote: Hugo Ramos wrote: Yellow, I think because of lazy people like me that prefer to use DTML in a fast way than go into a deep Python level to get the job done... I know that, eventually, one of these days I'll have to move on to Python only but until that day comes... DTML and a little bit of Python where needed suits me fine! :-) Regards Hugo Hugo, I figured as a dtml wiz a few years ago. Now I can't image doing w/out python scripts and suddenly DTML gives me a headache. I do think that DTML deserves a Hall of Fame Award but its time to move on. David - Greg, I agree with you: I would not convert existing code to ZPT unless a client asked me to. I too, am a one man shop - been doing it that way for like 14 years. I just made the decision to use ZPT for all *new* projects. I didn't like it much at the beginning but now I wouldnt do w/out it. ZPT has a magic of its own, its amazing! Plus, it seems to do force the mind to think in ways compatible with the direction of web developement evolution. The problem with DTML is its too good for, well, its own good. :-D All best, David ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Accessing file object to upload in an external method
Simon ALEXANDRE wrote: I'm new in zope and I'm trying to upload a file on zope using localfs. I already done it through a little basic html page + python script. I would like now use it in an external method. Here is the line added in the external method: self.dir_filesystem.manage_upload(file=self.zipfile) zipfile is the name of the file in the html form (File INPUT TYPE=file NAME=zipfile SIZE=25 VALUE=) I got the following error: File D:\\D-Side/qross/zope_gui\Extensions\Project.py, line 31, in PrepareToCreateOrUpdateObject self.dir_filesystem.manage_upload(file=self.zipfile) exceptions.AttributeError: zipfile I'm quite sure that my error lies in the way I reference 'zipfile' but I don't know how to proceed Two questions to ask yourself: what is 'self' and where would 'zipfile' be? Since we're not in the same room, I'll answer: 'self' is the object that the method is called on. 'zipfile' is present in the request, since it comes from a form. How would data from the request be available through the object you called the method on? But: you can get the request from the context:: self.request.zipfile should work. --jcc -- Building Websites with Plone http://plonebook.packtpub.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DTML in Zope 2 vs Zope 3
Dne tvrtek, 26. kvtna 2005 22:03 Greg Fischer [EMAIL PROTECTED] napsal(a): I am just curious, why is DTML not good? It does 9 out of 10 things I want quite easily. From my perspective, I really dont want to learn new ways of doing things if this works. I also have no desire to do templating. I can see the need for it in a large development shop,but for me, a 1 guy operation, I have no desire to complicate things. DTML works so easy for me. I do use Python scripts here and there for small and odd things that would be difficult or impossible to do in DTML, but like I said, that's maybe only 10% max of the functionality that I need to provide. (probably 5-6%) Having to move everything in Python is a hassle that I dont plan on doing for a few years. I'll just keep using Zope 2. I'd also be curious to know from all you other developers, what percentage of tasks that you need to perform or functionality you need to provide can be provided simply with DTML? Like for me, I can do quickly and easily do 90% of what I need in DTML. Is DTML really that much harder to use? I understand the whole idea of separating the logic and the presentation, and I guess, is that part of the reason why DTML is not as good? But, for me, that separation is more complicated. DTML is easier for me. (partly because I know it) I dont know, DTML and the everythings an object concept in Zope are the very things that make Zope so attractive for a small time operator like me. I hate to see them deprecated just because it doesnt work for the larger companies out there. Of course, I may be totally ignorant about all this, huh? I absolutelly agree with you, it is like my words. But separation of logic and presentation could be done successfully in DTML too. ZPT, which have separation argument is not as easy to make totally separated design as marketing says, for example see Plone - try to customize plone site to absolutelly different custom design - it is near impossible. -- Jaroslav Lukesh --- This e-mail can not contain any viruses because I use Linux ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] UnicodeDecodeError
Chris Withers wrote at 2005-5-25 20:54 +0100: Joern Wallstabe wrote: Seem Zopes ZPT system is trying to do the encoding, depending on on setHeader() method. So if this header is set you can simply return unicode strings. It's actually lower down in the stack... ZPublisher encodes the response, and has a stoopid hard coded default of 'latin-1' that it returns ;-) You are wrong: ZPublisher uses what it finds in the charset parameter of the Content-Type response header. Only the default is latin-1 (as specified by the HTML specification). -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Accessing file object to upload in an external method
Simon ALEXANDRE wrote at 2005-5-26 10:37 +0200: ... Here is the line added in the external method: self.dir_filesystem.manage_upload(file=self.zipfile) zipfile is the name of the file in the html form (File INPUT TYPE=file NAME=zipfile SIZE=25 VALUE=) As all request parameters (such as form controls), it is part of the request object. Therefore, you access it with self.REQUEST['zipfile']. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Finding an object in a folder
Chris Withers wrote at 2005-5-25 21:03 +0100: ... I strongly argue against it. Fix hasattr in the Zope context, instead! Make it so! :-) _marker = [] def hasattr(obj, attr, marker): a = getattr(obj, attr, _marker) return a is not _marker import __builtin__ __builtin__.hasattr = hasattr Easy enough, isn't it? Way easier than to change hasattr anywhere it is now used. Now, there need only to be someone who checks it in. if getattr(thefolder.aq_inner.aq_explicit,the_id,None): You are aware that this is in general *NOT* an emulation of hasattr. I didn't say it was ;-) It may fail e.g. for properties. How would it fail for properties? It fails for everything with a false value (None, 0, '', [], ...). Properties may have a false value. And it would be so easy to fix hasattr ;-) then why haven't you done it? ;-) I do not have write access to the Zope repository (because ZC requires full patent indemnification to grant it and I am unwilling to promise this). -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DTML in Zope 2 vs Zope 3
I use DTML alot, I also code all my HTML/CSS by hand for control sake. If you use a Dreamweaver, et al, DTML requires tool tweaking, if it works at all. If you read HTML, and are aware of all of the browser quirks, DTML is quick and easy... New tags are easy, they stand out and quite common... ASP, PHP, Cold Fusion and more... and I found DTML to be a nicely thought out tagging extension of HTML. I keep my display logic in DTML and do scripting in PythonScripts. I never had a great reason to get into ZPT, it didn't add any value for me with my HTML background. Probably the 90/10 split as well. DTML works fine in Homesite. Never cared for the WYSIWIG tools. Two Cents, -Jon [EMAIL PROTECTED] Greg Fischer wrote: I am just curious, why is DTML not good? It does 9 out of 10 things I want quite easily. From my perspective, I really dont want to learn new ways of doing things if this works. I also have no desire to do templating. I can see the need for it in a large development shop,but for me, a 1 guy operation, I have no desire to complicate things. DTML works so easy for me. I do use Python scripts here and there for small and odd things that would be difficult or impossible to do in DTML, but like I said, that's maybe only 10% max of the functionality that I need to provide. (probably 5-6%) Having to move everything in Python is a hassle that I dont plan on doing for a few years. I'll just keep using Zope 2. I'd also be curious to know from all you other developers, what percentage of tasks that you need to perform or functionality you need to provide can be provided simply with DTML? Like for me, I can do quickly and easily do 90% of what I need in DTML. Is DTML really that much harder to use? I understand the whole idea of separating the logic and the presentation, and I guess, is that part of the reason why DTML is not as good? But, for me, that separation is more complicated. DTML is easier for me. (partly because I know it) I dont know, DTML and the "everythings an object" concept in Zope are the very things that make Zope so attractive for a small time operator like me. I hate to see them deprecated just because it doesnt work for the larger companies out there. Of course, I may be totally ignorant about all this, huh? Anyway, starting to ramble... Thanks for any thoughts. Greg On 5/26/05, Hugo Ramos [EMAIL PROTECTED] wrote: Yellow, I have the same feeling... Python should be the primary language used in Zope but let's not just cut the support on DTML leaving thousands out there spinning around and having to go into Python as fast as they can because DTML is not supported anymore. Changes take time... Getting used to Python only in Zope takes time... and I'm not so sure the employers out there are that kind allowing everybody to take time making the move. Regards Hugo On 5/26/05, David H [EMAIL PROTECTED] wrote: Hugo Ramos wrote: Yellow, I think because of lazy people like me that prefer to use DTML in a fast way than go into a deep Python level to get the job done... I know that, eventually, one of these days I'll have to move on to Python only but until that day comes... DTML and a little bit of Python where needed suits me fine! :-) Regards Hugo Hugo, I figured as a dtml "wiz" a few years ago. Now I can't image doing w/out python scripts and suddenly DTML gives me a headache. I do think that DTML deserves a Hall of Fame Award but its time to move on. David -- Hugo Ramos - [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Finding an object in a folder
On Thursday 26 May 2005 02:52 pm, Dieter Maurer wrote: Chris Withers wrote at 2005-5-25 21:03 +0100: ... I strongly argue against it. Fix hasattr in the Zope context, instead! Make it so! :-) I'd add the ability to turn on/off acquisition (off by default, import aq_base somewhere above), and get rid of the required marker parameter: _marker = [] def hasattr(obj, attr, acquire=False): if not acquire: obj = aq_base(obj) a = getattr(obj, attr, _marker) return a is not _marker import __builtin__ __builtin__.hasattr = hasattr Easy enough, isn't it? Way easier than to change hasattr anywhere it is now used. Now, there need only to be someone who checks it in. This would be lovely. :-) Alec ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DTML in Zope 2 vs Zope 3
I agree, I find DTML great and s simple and clear. I wonder why Zopeheads hate this so much! Remy On 5/26/05, Jonathan Cyr [EMAIL PROTECTED] wrote: I use DTML alot, I also code all my HTML/CSS by hand for control sake. If you use a Dreamweaver, et al, DTML requires tool tweaking, if it works at all. If you read HTML, and are aware of all of the browser quirks, DTML is quick and easy... New tags are easy, they stand out and quite common... ASP, PHP, Cold Fusion and more... and I found DTML to be a nicely thought out tagging extension of HTML. I keep my display logic in DTML and do scripting in PythonScripts. I never had a great reason to get into ZPT, it didn't add any value for me with my HTML background. Probably the 90/10 split as well. DTML works fine in Homesite. Never cared for the WYSIWIG tools. Two Cents, -Jon [EMAIL PROTECTED] Greg Fischer wrote: I am just curious, why is DTML not good? It does 9 out of 10 things I want quite easily. From my perspective, I really dont want to learn new ways of doing things if this works. I also have no desire to do templating. I can see the need for it in a large development shop,but for me, a 1 guy operation, I have no desire to complicate things. DTML works so easy for me. I do use Python scripts here and there for small and odd things that would be difficult or impossible to do in DTML, but like I said, that's maybe only 10% max of the functionality that I need to provide. (probably 5-6%) Having to move everything in Python is a hassle that I dont plan on doing for a few years. I'll just keep using Zope 2. I'd also be curious to know from all you other developers, what percentage of tasks that you need to perform or functionality you need to provide can be provided simply with DTML? Like for me, I can do quickly and easily do 90% of what I need in DTML. Is DTML really that much harder to use? I understand the whole idea of separating the logic and the presentation, and I guess, is that part of the reason why DTML is not as good? But, for me, that separation is more complicated. DTML is easier for me. (partly because I know it) I dont know, DTML and the everythings an object concept in Zope are the very things that make Zope so attractive for a small time operator like me. I hate to see them deprecated just because it doesnt work for the larger companies out there. Of course, I may be totally ignorant about all this, huh? Anyway, starting to ramble... Thanks for any thoughts. Greg On 5/26/05, Hugo Ramos [EMAIL PROTECTED] wrote: Yellow, I have the same feeling... Python should be the primary language used in Zope but let's not just cut the support on DTML leaving thousands out there spinning around and having to go into Python as fast as they can because DTML is not supported anymore. Changes take time... Getting used to Python only in Zope takes time... and I'm not so sure the employers out there are that kind allowing everybody to take time making the move. Regards Hugo On 5/26/05, David H [EMAIL PROTECTED] wrote: Hugo Ramos wrote: Yellow, I think because of lazy people like me that prefer to use DTML in a fast way than go into a deep Python level to get the job done... I know that, eventually, one of these days I'll have to move on to Python only but until that day comes... DTML and a little bit of Python where needed suits me fine! :-) Regards Hugo Hugo, I figured as a dtml wiz a few years ago. Now I can't image doing w/out python scripts and suddenly DTML gives me a headache. I do think that DTML deserves a Hall of Fame Award but its time to move on. David -- Hugo Ramos - [EMAIL PROTECTED] ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Finding an object in a folder
On Thu, May 26, 2005 at 11:52:36PM +0200, Dieter Maurer wrote: Chris Withers wrote at 2005-5-25 21:03 +0100: ... I strongly argue against it. Fix hasattr in the Zope context, instead! Make it so! :-) _marker = [] def hasattr(obj, attr, marker): a = getattr(obj, attr, _marker) return a is not _marker import __builtin__ __builtin__.hasattr = hasattr Easy enough, isn't it? Are you currently running zope with a patch like this? Have you noticed any performance difference? the zope 2.6 source code contains over 700 calls to hasattr()... Now, there need only to be someone who checks it in. Well, first I think it should be discussed on zope-dev... unless it already has been? I'll post a message there. -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: LDAPUserFolder at Zope root
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 J Cameron Cooper wrote: Oscar Figueiredo wrote: this might be trivial but I just can't find a way to do it. How does one replace the initial UserFolder at Zope root with a LDAPUSerFolder ? I tried the dummy way : delete the acl_users with an intent to instanciate a LDAPUSerFolder afterwards but that locked me out in a way I could do nothing but recreate a new Zope instance... skip-authentication-checking in etc/zope.conf didn't help... Do not do that. You don't want to get locked out of your Zope because of LDAP problems. If you must have several other folders share a user folder other than the default, create a folder that contains everything. Unless you are actively developing a new user folder implementation, the risk of being locked out is not too bad: stable user folders always emulate the stock version's handling of the EmergencyUser, which gives you a way to log in and fix / delete a broken '/acl_users'. If you *are* working on a new user folder implementation, then 'bin/zopectl debug' is your friend: $ bin/zopectl debug ... app._delObject('acl_users') del app.__ac_groups get_transaction().commit() # Z27, deprecated in Z28 Tres. - -- === Tres Seaver [EMAIL PROTECTED] Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFClnju+gerLs4ltQ4RAoc0AJ0b10k04CEkonsKr4tEtOj0jcDJ1wCgqSn2 Ynw8lGPwGawmTZlWTxoB6Rs= =Fvbi -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )