Re: [Zope-dev] ZPatterns bug. Very serious.
At 01:06 PM 6/23/00 +0800, mike wrote: There _IS_ a problem. Maybe _v_cachedAttr is not a guilty, but do you know it exists only in newly created objects and do _not_ exists in old?. The attribute cache is created only when used in a transaction, so if you retrieve a persistent object from a Rack and immediately dump its dictionary, the cache will not exist. Anyway, newly created DataSkin instances return wrong REQUEST (and other things) but _old_ retrieved ones work good. I tell you this because it is impossible to obtain AUTHENTICATE_USER from fresh DataSkins, so things like 'manage_tabs' just do not work properly. Try set up Rack for any real ZClass and you see this. I'm not currently seeing this, but the work Ty and I are doing with Racks at present involves objects which are not actually stored in the ZODB, so perhaps we're missing a bug with things that are stored in the ZODB, like the last one you found. But as far as I know, Rack.getItem() should always return an object whose acquisition context is the Specialist. If you'd like I send you complete test suite reproducing the situation. Please do. Thanks. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] Another bug in DA.py?
After trying this with version 2.2.0b2 I became the following result: Error, Unauthorized, NoBrains If I try the following ZSQL method it displays de authorization window: dtml-let Cl="get_Cliente(N_='22606')[0]" select * from Cliente where N_='22606' /dtml-let but if I try the next ZSQL method it displays the correct result (the difference is theinteger index in the first line): dtml-let Cl="get_Cliente(N_='22606')" select * from Cliente where N_='22606' /dtml-let As you can see the "dtml-let" isn't usefull, but this is a simplified example. For reference here is the get_Cliente ZSQL method: select * from Cliente where dtml-sqltest N_ type=string Very simple. Thank you in advance. Juan - I'm not sure what's going on here. I can't reproduce this here no matter what I do :( I've tried using Gadfly and MySQL, and doing this works fine for me, both trying it anonymously and as a manager. I'm assuming that you did a fresh, from-scratch 2.2beta2 install and that if you are using source release you rebuild your binaries when you upgraded? Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Python 1.6
Toby Dickenson writes: I'm about to start looking at running Zope on python 1.6 (Im feeling the need for better Unicode support). Almost surely, it will work. But it probably will not use the Unicode support automatically. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: [Zope] Please test this Zope 2.2 beta 1 ZSQLMethods fix...
That did it! But... :) I ended up having to re-create all my ZSQL methods, which was funny because they all worked in the beta 1 but not in beta 2. I kept getting len() of unsized object errors. Anyway, re-creating them all from scratch (ugh..) solved that problem. BUT, the BIG problem I'm having is still with the external method in courseList.py. I'll attach the file here. It returns a list that can be traversed with the dtml-in tag. I'm still getting Unauthorized errors when trying to access properties of the objects this function returns. For instance, when I run this function on a query sorted by 'term', the first object in the list contains a property called 'open-term'. When I try to access this property within a dtml-in tag, even as Superuser, it gives me an Unauthorized error. I tried everything, even giving anonymous users all privileges to that external method. Nothing worked. Here's my traceback: Unauthorized Sorry, a Zope error occurred. Traceback (innermost last): File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/OFS/DTMLDocument.py, line 168, in __call__ (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py , line 503, in __call__ (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Let.py, line 145, in render (Object: page=id) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 163, in __call__ (Object: course_list) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py , line 503, in __call__ (Object: course_list) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Let.py, line 145, in render (Object: groupby="['term','type','category']" query="db.listCourses(type=type,term=term,keyword=keyword,category=category, inactive=inactive,show_new=PARENTS[0].id=='admin')") File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: extern.courseList(_, groupby=groupby, query=query)) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 189, in validate (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/AccessControl/SecurityManager .py, line 139, in validate File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/AccessControl/ZopeSecurityPol icy.py, line 158, in validate Unauthorized: open_term Any ideas? Now, it could just be my programming. With the new 2.2 version I may need to add security information to each object (which I don't know how to do). Right now I'm just starting with a blank class and adding a few properties to it. Zope may be looking at it and thinking, "What the heck is this thing?" The idea was to trick Zope into thinking it was a Z SQL query; perhaps 2.2 isn't so easily fooled...? At any rate, we're getting closer... :) - T.J. - Original Message - From: Brian Lloyd [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Brian Lloyd [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 21, 2000 9:25 AM Subject: [Zope] Please test this Zope 2.2 beta 1 ZSQLMethods fix... Hi all, Several folks have reported problems in beta 1 with SQLMethods having authentication problems when trying to call other SQL Methods. I'd like a few intrepid volunteers to try something for me to see if it fixes the problem. I'd like to make a 2.2 beta 2 release tomorrow but I want to make sure this issue is resolved first. Make a backup of the file: lib/python/Shared/DC/ZRDB/DA.py in your current (beta 1) installation and replace it with the DA.py attached to this email, restart and let me know if the problem goes away. Thanks! Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com courseList.py
[Zope-dev] SiteAccess in 2.0.0b2?
I'm having trouble getting SiteAccess 2.0.0b2 to work with Zope 2.2.0b2. The first odd thing that happens is when I create a new SiteRoot, it says that this object already has a SiteRoot (which it doesn't), but creates it anyway. The second is: it doesn't seem to work at all! The value of URL1 still has the :9080 port and the wrong virtual server. Any ideas? - T.J. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope 2.2.0b2 FTP server -- Cannot list directory?
I'm having a problem with the Zope FTP server in 2.2.0b2. If I try to get a directory listing, it gives an error saying it can't list the directory. If I try to change directories (even 'cd /'), it tells me it can't find the directory. However, if I know the exact name of the file I want to transfer, it will let me do it. Any ideas? - T.J. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] RE: [Zope] Please test this Zope 2.2 beta 1 ZSQLMethods fix...
BUT, the BIG problem I'm having is still with the external method in courseList.py. snip Any ideas? Now, it could just be my programming. With the new 2.2 version I may need to add security information to each object (which I don't know how to do). Right now I'm just starting with a blank class and adding a few properties to it. Zope may be looking at it and thinking, "What the heck is this thing?" The idea was to trick Zope into thinking it was a Z SQL query; perhaps 2.2 isn't so easily fooled...? I think that you have hit it on the head - we're trying *hard* to make Zope harder to fool :^) Try adding the following to your class statement, for example: class MyClass: __allow_access_to_unprotected_subobjects__=1 def __init(self, foo): ... ...You'll need to restart Zope for this to take effect. Hope this helps! Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] No feedback for SOAP patch ?
On Fri, Jun 23, 2000 at 10:34:50PM -0400, Evan Simpson wrote: I've barely had a free second with functioning brain capacity this past week, but I'm interested. More so now that Secret Labs has announced their SOAP client library at http://www.pythonware.com/products/soap If you That made me to do it :^) (and it is partly guilty for why it isnt working as good as it should...). haven't already popped your patch into the Collector, please do! I just did now -Petru ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] SiteAccess in 2.0.0b2?
- Original Message - From: T.J. Mannos [EMAIL PROTECTED] I'm having trouble getting SiteAccess 2.0.0b2 to work with Zope 2.2.0b2. The first odd thing that happens is when I create a new SiteRoot, it says that this object already has a SiteRoot (which it doesn't), but creates it anyway. The second is: it doesn't seem to work at all! The value of URL1 still has the :9080 port and the wrong virtual server. Any ideas? What's your platform (win, linux, *bsd)? Is this a Zope database which has been upgraded from an earlier version of Zope? If so, were you using SiteAccess 1.x with that earlier version? Cheers, Evan @ digicool 4-am ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] (no subject)
Hi: Could you give an equivalent using the current dtml tags? Thanks, Shalabh - Original Message - From: Jay, Dylan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 23, 2000 12:02 PM Subject: [Zope] (no subject) Here's a feature I just submitted to the collector. It seems to me that a few tweaks to the dtml-if syntax would be beneficial something like the following would certainly clean up some of the logic I end up writing. dtml-if X a href="a_url" dtml-always link text dtml-else (no link currently available) dtml-then /a /dtml-if What do people think? I've not implemented it but I wouldn't imagine its very hard. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Who has compiled _mysql.pyd?
Title: Who has compiled _mysql.pyd? I use to develop on linux, but in this moment I need to setup a Zope server on NT with ZmySQLDA 1.2.0. On linux I don't have problems to compile _mysqlmodule.so, but on NT I don't have a compiler nor experience. Anyone has already compiled _mysql.pyd for NT? Can I have a copy of _mysql.pyd?
[Zope] zgadfly and zsql problem
i m using da zgadfly database and i m still trying to use this type of query SELECT* FROMtable_name WHEREfield_name LIKE 'test' but it s seems that zgadfly doesn t support da LIKE sql tag! anyone have an ID ???
Re: [Zope] zgadfly and zsql problem
[...] but it s seems that zgadfly doesn t support da LIKE sql tag! anyone have an ID ??? From gadfly FAQ: """ Where is the LIKE predicate? The LIKE predicate for string matching is still not supported at the SQL level. For what it's worth, it is easy to use Python's string matching (regex, re, string.search, etcetera) facilities on the result of a query. Also, for what it's worth, since the gadfly optimizer won't easily be able to optimize for string matching the "by hand" method would essentially be what gadfly would do anyway, without major modifications to the implementation. """ Adam Karpierz [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] zgadfly and zsql problem
In article 00b201bfdcf9$5bb7e8d0$6200a8c0@longwy, Luc Tonin ltonin@lw .multithematiques.com writes i m using da zgadfly database and i m still trying to use this type of query SELECT * FROM table_name WHERE field_name LIKE 'test' but it s seems that zgadfly doesn t support da LIKE sql tag! anyone have an ID ??? It doesn't AFAIK. -- Regards, Graham Chiu gchiuatcompkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] image inclusion: empty ALT not the same as no ALT
Greetings I just noticed a problem with the `tag' method: If I insert an image with dtml-var "some_image.tag (border='0', alt='')" (nice because `width' and `height' are inserted automatically), I get an img element with NO `alt' attribute, instead of an `alt' atribute with an empty string as its value (alt=""). An empty `alt' value is important when using images for which it is best not to insert any alternative text in text browsers (decoration-only or redundant image links, for instance), because the absence of the `alt' attribute may not be equivalent to an empty value. In lynx, for example, the file name of the image (more precisely, the last component of the path in the `src' attribute) is shown (yuck) when no `alt' attribute is supplied. -- jmce: +351 919838775 ~ http://artenumerica.com/ ~ http://artenumerica.org/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Invalid Header (0) error
Does anyone know what an Error Type: Value Error, Error Value:Invalid Header (0) error represents ? It's interesting in the way it shows itself up. I added a dtml-var a_dtml_method to a dtml method and it generates this error. This dtml-var a_dtml_method is nested inside a dtml-if and would definitely not be rendered the first time the 'calling' dtml-method is rendered. I took out the dtml-var a_dtml_method and I still got the same error. I put a dtml-var REQUEST as the first line of the 'calling' method and everything then renders correctly with no error. Even the dtml-var a_dtml_method renders correctly when it should do so. Any ideas, suggestions ? I'm running Zope 2.1.6 on RedHat Linux Thanks Richard Richard Moon [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] R: [Zope] Invalid Header (0) error
Does anyone know what an Error Type: Value Error, Error Value:Invalid Header (0) error represents ? It's interesting in the way it shows itself up. I added a dtml-var a_dtml_method to a dtml method and it generates this error. This dtml-var a_dtml_method is nested inside a dtml-if and would definitely not be rendered the first time the 'calling' dtml-method is rendered. I took out the dtml-var a_dtml_method and I still got the same error. I put a dtml-var REQUEST as the first line of the 'calling' method and everything then renders correctly with no error. Even the dtml-var a_dtml_method renders correctly when it should do so. Any ideas, suggestions ? This is very strange. I had have the some problem. I have seen that if the Zope generate a lot of empty lines at the begining I receive this error. the idea is to dont have too many empty lines at the begining of the output, (I have no idea how many) try to write something at the begining of the output doc. I use someting like "Content-type:" PM PS: My English is not so good, maybe you dont understood what I want to say ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] RE: Zope2.2.0b2 not workink on win98
On my Win box Zope dont allow add _no one_ objects (eg. Folder), dont allow enter Control Panel if product incorect installed, etc.. Zope 2.1.6 and 2.1.7 (with apropriate patches) works very well. What I am doing wrong or eventually how can I help to avoid this problems ? platform: Win98, Zope2.2.0b2 from official installer, empty (default) Data.fs Eg. if i try to add a Folder that is happend: STRONGError Type: SuperCannotOwn/STRONGBR STRONGError Value: Objects cannot be owned by the superuser/STRONGBR snip Adam, In Zope 2.2 and above, the superuser should *only* be used to bootstrap your system and create management users. The superuser can not own objects in Zope now for security reasons. Please see the "upgrading to Zope 2.2.0" document on Zope.org for more information on this. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Zope2.2.0b2 - cannot import tutorial
Hello! I started to do experiments with 2.2.0b2 (I skipped b1). Looks good. I lpayed a little and found tutorial.zexp in directory import. I tried to import, but Zope complains. Other than that it's working nice. I installed SiteAccess2 - nohram. I didn't do an extensive testing of SA, will do it later. I remember DC promises to add a screen to configure the number of threads instead of default 7, but I didn't found the screen. Will it be added later? Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] image inclusion: empty ALT not the same as no ALT
Hi J, J M Cerqueira Esteves wrote: Greetings I just noticed a problem with the `tag' method: If I insert an image with dtml-var "some_image.tag (border='0', alt='')" (nice because `width' and `height' are inserted automatically), I get an img element with NO `alt' attribute, instead of an `alt' atribute with an empty string as its value (alt=""). An empty `alt' value is important when using images for which it is best not to insert any alternative text in text browsers (decoration-only or redundant image links, for instance), because the absence of the `alt' attribute may not be equivalent to an empty value. In lynx, for example, the file name of the image (more precisely, the last component of the path in the `src' attribute) is shown (yuck) when no `alt' attribute is supplied. I assume the check for the attribute is only something like that: if alt: ... So an empty string is considered also false. You can work around with dtml-var "some_image.tag(border='0',alt=' ')" Since a space is not seen but also not false. HTH Tino Wildenhain ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope2.2.0b2 - cannot import tutorial
On Fri, 23 Jun 2000, Oleg Broytmann wrote: I installed SiteAccess2 - nohram. ^^ "No harm", of course :) Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Zope2.2.0b2 - cannot import tutorial
I started to do experiments with 2.2.0b2 (I skipped b1). Looks good. I lpayed a little and found tutorial.zexp in directory import. I tried to import, but Zope complains. That import file is used by Amos' new Zope Tutorial object (you add that via the normal add list). It probably shouldn't blow up if you try to import it normally though - I'll forward this to Amos. I remember DC promises to add a screen to configure the number of threads instead of default 7, but I didn't found the screen. Will it be added later? Who promised you that? :^) I hadn't heard of this... Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope2.2.0b2 doesn't work on win98
On Fri, Jun 23, 2000 at 02:50:20PM +0200, Adam Karpierz wrote: Eg. if i try to add a Folder that is happend: STRONGError Type: SuperCannotOwn/STRONGBR STRONGError Value: Objects cannot be owned by the superuser/STRONGBR This is caused by a change in the Zope security mechanism. As the error states, objetcs can not be owned by the superuser, so you will have to create a new user with Manager role to create new objects. For more info please read the upgrading document at: http://www.zope.org:18280/Products/Zope/2.2.0b2/upgrading_to_220 If you still have problems, could you describe them in detail here? -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Zope2.2.0b2 - cannot import tutorial
On Fri, 23 Jun 2000, Brian Lloyd wrote: I remember DC promises to add a screen to configure the number of threads instead of default 7, but I didn't found the screen. Will it be added later? Who promised you that? :^) I hadn't heard of this... It is possible my memory is wrong. Or may be I just understanded it wrong way. But I clearly remember - I saw in mailing list the idea of adding interface to configure the number of threads, and planned for Zope 2.2. It was few months ago. I'll try to search mailing lists on this... Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope2.2.0b2 - cannot import tutorial
On Fri, Jun 23, 2000 at 01:59:22PM +, Oleg Broytmann wrote: I remember DC promises to add a screen to configure the number of threads instead of default 7, but I didn't found the screen. Will it be added later? I think you are confusing some issues. You can use the -t switch to z2.py to set the number of threads (which defaults to 4). This is the number of request serving threads, there are other threads for other tasks in Zope you don't have any influence over. Each of these serving threads has it's own connection to the ZODB. And there _is_ a hardwired limit to the number of connections, which, IIRC, is set to 10 or something. There has been talk of changing that number, or, even better, have it dynamically change to suit the circumstances. But this is all from vague memory, so don't go quoting me on this. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope2.2.0b2 - cannot import tutorial
On Fri, 23 Jun 2000, Martijn Pieters wrote: Each of these serving threads has it's own connection to the ZODB. And there _is_ a hardwired limit to the number of connections, which, IIRC, is set to 10 or something. There has been talk of changing that number, or, even better, have it dynamically change to suit the circumstances. But this is all from vague memory, so don't go quoting me on this. Yes, exactly - that was about web-interface to change this limit. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope2.2.0b2 - cannot import tutorial
On Fri, Jun 23, 2000 at 02:23:29PM +, Oleg Broytmann wrote: On Fri, 23 Jun 2000, Brian Lloyd wrote: I remember DC promises to add a screen to configure the number of threads instead of default 7, but I didn't found the screen. Will it be added later? Who promised you that? :^) I hadn't heard of this... It is possible my memory is wrong. Or may be I just understanded it wrong way. But I clearly remember - I saw in mailing list the idea of adding interface to configure the number of threads, and planned for Zope 2.2. It was few months ago. I'll try to search mailing lists on this... The ability to configure the number of threads was present in z2.py from the very first version checked into CVS. Maybe you are confusing this with the configurable optimisation, where you can use the -i switch to tweak the interpreter check interval? -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] zope_greenbay:)
drawingincodezopeanalysiscommentshuman_only (!-- normal comment tag avoided as to not upset processor 300th time around :)--) they were the best in 62 the sweep was awesome like Patton's army at their best and they won We are like everybody else We are like New York, Dallas and they lost for a very long time then Ah (Wisconsin/Scandinavian accent) we are different we are the owners we can afford to be different and they won for a very long time (the Green Bay Packers are the only team in NFL owned by their beloved fans) /human_only/comments/analysis/zope/drawingincode have a good weekend michael drawingincode ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 2.2 beta 2 released
Monty, I can't find 1.2.0. I run a search for MySQL and all that comes up is MikeP's version 1.1.3. Come to think of it, I have no idea where I found 2.0.0, either. I think it was on a Zope news announcement for a while then disappeared. Anyway, could you send me the URL to 1.2.0? Thanks, T.J. - Original Message - From: Monty Taylor [EMAIL PROTECTED] To: T.J. Mannos [EMAIL PROTECTED] Cc: IPM Return requested Receipt notification requested [EMAIL PROTECTED] Sent: Friday, June 23, 2000 1:53 AM Subject: Re: [Zope] Zope 2.2 beta 2 released Well, I'm not sure why you would need to change versions as I haven't done any testing of ZMySQLDA on the 2.2 Beta release, but I would suggest downloading and installing ZMySQLDA 1.2.0. Andy's version, 2.0.0, isn't published because he doesn't really want to provide support right now. He does have some things in there that I want to migrate into the current line, and I've already included his changes to use the new backend module. So I can help you out a bit more if you use 1.2.0. But that's your call. I'll see what I can find out in any case, just as soon as I install a 2.2 server somewhere. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] R: [Zope] Invalid Header (0) error
Marcel, you're English is fine (better than my Italian). I think you are near to the answer. My dtml method 'dtml_main' has this kind of logic dtml-if something dtml-var a_dtml_method dtml-else dtml-var another_dtml_method /dtml-if I had standard_html_header (which has an html header) in each of the 'inner' methods, but not in the 'dtml_main' method. So I took standard_html_header out of 'a_dtml_method' and 'another_dtml_method' and put it in the 'dtml_main' method. No Invalid Header problems now. I don't know why that should make a difference but it seems to. Thanks for your help Richard I found that the main dtml-method had no standard-header (so no html header) but the methods which it was rendering At 15:01 23/06/00 +0200, you wrote: Does anyone know what an Error Type: Value Error, Error Value:Invalid Header (0) error represents ? It's interesting in the way it shows itself up. I added a dtml-var a_dtml_method to a dtml method and it generates this error. This dtml-var a_dtml_method is nested inside a dtml-if and would definitely not be rendered the first time the 'calling' dtml-method is rendered. I took out the dtml-var a_dtml_method and I still got the same error. I put a dtml-var REQUEST as the first line of the 'calling' method and everything then renders correctly with no error. Even the dtml-var a_dtml_method renders correctly when it should do so. Any ideas, suggestions ? This is very strange. I had have the some problem. I have seen that if the Zope generate a lot of empty lines at the begining I receive this error. the idea is to dont have too many empty lines at the begining of the output, (I have no idea how many) try to write something at the begining of the output doc. I use someting like "Content-type:" PM PS: My English is not so good, maybe you dont understood what I want to say ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) Richard Moon [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope 2.2 beta 2 released
http://www.zope.org/Members/mordred/ZMySQLDA "T.J. Mannos" wrote: Monty, I can't find 1.2.0. I run a search for MySQL and all that comes up is MikeP's version 1.1.3. Come to think of it, I have no idea where I found 2.0.0, either. I think it was on a Zope news announcement for a while then disappeared. Anyway, could you send me the URL to 1.2.0? Thanks, T.J. - Original Message - From: Monty Taylor [EMAIL PROTECTED] To: T.J. Mannos [EMAIL PROTECTED] Cc: IPM Return requested Receipt notification requested [EMAIL PROTECTED] Sent: Friday, June 23, 2000 1:53 AM Subject: Re: [Zope] Zope 2.2 beta 2 released Well, I'm not sure why you would need to change versions as I haven't done any testing of ZMySQLDA on the 2.2 Beta release, but I would suggest downloading and installing ZMySQLDA 1.2.0. Andy's version, 2.0.0, isn't published because he doesn't really want to provide support right now. He does have some things in there that I want to migrate into the current line, and I've already included his changes to use the new backend module. So I can help you out a bit more if you use 1.2.0. But that's your call. I'll see what I can find out in any case, just as soon as I install a 2.2 server somewhere. begin:vcard n:Taylor;Monty tel;cell:+31 (0)6 200 17486 tel;fax:+31 (0)20 589 5566 tel;work:+31 (0)20 589 5517 x-mozilla-html:TRUE url:http://www.goldridge.net org:Information Innovation adr:;;Amstelveenseweg 88-90;Amsterdam;;1075 XJ;The Netherlands version:2.1 email;internet:[EMAIL PROTECTED] title:Information Artist x-mozilla-cpt:;0 fn:Monty Taylor end:vcard
Re: [Zope] Re: Is DTML a bastardized form of XML, or valid XML?
I'm pretty sure "new syntax" DTML is not actually valid XML, but it doesn't really matter: it's a bad idea either way. The new syntax is a misguided attempt to mix the base and meta levels, which can only result in confusion. DTML is not markup, it is a macro language for generating markup. As such, it will not always be possible to coerce it into a form that meets the syntax rules of the base language. But meeting those rules, and consequently being able to use XML editors, is the only real justification for the new syntax. h1 !--#if "fervor 2"--class="hot"!--#/if-- How do I do this in "new" DTML? /h1 h1 dtml-if "fervor 2"class="hot"/dtml-if This isn't valid XML (bad attribute). /h1 dtml-if expr="fervor 2" h1 class="hot" dtml-else h1 /dtml-if This isn't valid XML, either (bad nesting). /h1 dtml-if expr="fervor 2" h1 class="hot" This is very clumsy and does not scale. /h1 dtml-else h1 ...but I think it is valid XML. /h1 /dtml-if Also, XML requires all attributes to be quoted, so forget about using the implicit name/expr distinction with your shiny new XML editor. The new syntax doesn't satisfy the arguments that were given to support it, and it decreases the readability and maintainability of DTML code that uses it by making it hard to distinguish DTML directives from markup. I avoid it, and I don't recommend it to others. joe ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Re: Is DTML a bastardized form of XML, or valid XML?
There was tremendous discussion on the mailing list around the time of the introduction of the new syntax. As Jim made clear, the goals of the new syntax did _not_ include XML compliance. Instead, the goals were: a. Get rid of the old syntax. The SSI style was universally ridiculed and requires typing of hard-to-reach characters. b. Make it possible for some HTML editors that can extend their tag database to recognize DTML tags. At the time of the introduction, XML editors were not widely adopted. That still hasn't changed. Hope this correction helps. --Paul -Original Message- From: Joe Pallas [mailto:[EMAIL PROTECTED]] Sent: Friday, June 23, 2000 8:39 AM To: Martijn Pieters; Hung Jung Lu Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [Zope] Re: Is DTML a bastardized form of XML, or valid XML? I'm pretty sure "new syntax" DTML is not actually valid XML, but it doesn't really matter: it's a bad idea either way. The new syntax is a misguided attempt to mix the base and meta levels, which can only result in confusion. DTML is not markup, it is a macro language for generating markup. As such, it will not always be possible to coerce it into a form that meets the syntax rules of the base language. But meeting those rules, and consequently being able to use XML editors, is the only real justification for the new syntax. h1 !--#if "fervor 2"--class="hot"!--#/if-- How do I do this in "new" DTML? /h1 h1 dtml-if "fervor 2"class="hot"/dtml-if This isn't valid XML (bad attribute). /h1 dtml-if expr="fervor 2" h1 class="hot" dtml-else h1 /dtml-if This isn't valid XML, either (bad nesting). /h1 dtml-if expr="fervor 2" h1 class="hot" This is very clumsy and does not scale. /h1 dtml-else h1 ...but I think it is valid XML. /h1 /dtml-if Also, XML requires all attributes to be quoted, so forget about using the implicit name/expr distinction with your shiny new XML editor. The new syntax doesn't satisfy the arguments that were given to support it, and it decreases the readability and maintainability of DTML code that uses it by making it hard to distinguish DTML directives from markup. I avoid it, and I don't recommend it to others. joe ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] HTML Editors that recognize DTML (was bastardized form of XML)
// b. Make it possible for some HTML editors that can extend their tag // database to recognize DTML tags. Maybe this is a little off topic, but did you have an editor in mind when you changed the syntax? Can you recommend an HTML editor that runs on Windows that will do this? I am currently coding DTML in VisualC++'s IDE using VBScript to paste in the DTML. This method works OK, but if there is something better, I'd love to hear about it. Thanks, Eric. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Fwd: Re: [Zope] R: [Zope] Invalid Header (0) error
We've had the same problem, Michael Pelletier addressed this question in a previous post, Check out: http://www.egroups.com/message/zope/29589?start=29498 To summarize, 'Zope doesn't like it if there is no html tags before the DTML begins.' To fix our problem, we simply make sure that a html comment as the first line in every page, through the standard_html_header. Hope this helps, Mark --- [EMAIL PROTECTED] www.kaivo.com --- In [EMAIL PROTECTED], Richard Moon [EMAIL PROTECTED] wrote: Marcel, you're English is fine (better than my Italian). I think you are near to the answer. My dtml method 'dtml_main' has this kind of logic dtml-if something dtml-var a_dtml_method dtml-else dtml-var another_dtml_method /dtml-if I had standard_html_header (which has an html header) in each of the 'inner' methods, but not in the 'dtml_main' method. So I took standard_html_header out of 'a_dtml_method' and 'another_dtml_method' and put it in the 'dtml_main' method. No Invalid Header problems now. I don't know why that should make a difference but it seems to. Thanks for your help Richard I found that the main dtml-method had no standard-header (so no html header) but the methods which it was rendering At 15:01 23/06/00 +0200, you wrote: Does anyone know what an Error Type: Value Error, Error Value:Invalid Header (0) error represents ? It's interesting in the way it shows itself up. I added a dtml-var a_dtml_method to a dtml method and it generates this error. This dtml-var a_dtml_method is nested inside a dtml-if and would definitely not be rendered the first time the 'calling' dtml-method is rendered. I took out the dtml-var a_dtml_method and I still got the same error. I put a dtml-var REQUEST as the first line of the 'calling' method and everything then renders correctly with no error. Even the dtml-var a_dtml_method renders correctly when it should do so. Any ideas, suggestions ? This is very strange. I had have the some problem. I have seen that if the Zope generate a lot of empty lines at the begining I receive this error. the idea is to dont have too many empty lines at the begining of the output, (I have no idea how many) try to write something at the begining of the output doc. I use someting like "Content-type:" PM PS: My English is not so good, maybe you dont understood what I want to say ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) Richard Moon [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) --- End forwarded message --- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Is DTML a bastardized form of XML, or valid XML?
On Fri, Jun 23, 2000 at 08:39:01AM -0700, Joe Pallas wrote: I'm pretty sure "new syntax" DTML is not actually valid XML, but it doesn't really matter: it's a bad idea either way. The new syntax is a misguided attempt to mix the base and meta levels, which can only result in confusion. DTML is not markup, it is a macro language for generating markup. As such, it will not always be possible to coerce it into a form that meets the syntax rules of the base language. But meeting those rules, and consequently being able to use XML editors, is the only real justification for the new syntax. h1 !--#if "fervor 2"--class="hot"!--#/if-- How do I do this in "new" DTML? /h1 h1 dtml-if "fervor 2"class="hot"/dtml-if This isn't valid XML (bad attribute). /h1 dtml-if expr="fervor 2" h1 class="hot" dtml-else h1 /dtml-if This isn't valid XML, either (bad nesting). /h1 dtml-if expr="fervor 2" h1 class="hot" This is very clumsy and does not scale. /h1 dtml-else h1 ...but I think it is valid XML. /h1 /dtml-if Also, XML requires all attributes to be quoted, so forget about using the implicit name/expr distinction with your shiny new XML editor. The new syntax doesn't satisfy the arguments that were given to support it, and it decreases the readability and maintainability of DTML code that uses it by making it hard to distinguish DTML directives from markup. I avoid it, and I don't recommend it to others. The reason to introduce the now-not-so-new-anymore syntax was to make it more pallatable to _HTML_ editors, not XML editors. To this end also the DTML entity syntax was introduced, so you could easily embed variables and object calls (whith various formatting options) inside tags. With the enitity reference we can get closer to XML conformance. The above could also be formatted as: dtml-let fervor_class="_.test(fervor 2, 'class=\x22hot\x22', '')" h1 dtml_-fervor_class; This is, as far as I can see, valid XML, if maybe somewhat convoluted. /h1 /dtml-let The let tag combined with the _.test() method will assign a value of 'class="hot"' or '' to fervor_class, which is then inserted into the generated text without any formatting. But, again, the DTML syntax wasn't designed for this. It doesn't do namespaces. The dtml-else tag in a dtml-if/dtml-if isn't technically an empty tag, yet XML would dictate it is, and also require a / at the end. Etc. It was purely designed to be tolerated by an HTML editor, that doesn't care about bad nesting or what an empty tag should look like. We just tried to make a WYSIWYG HTML editor a bit more useful for HTML with DTML in it. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] HTML Editors that recognize DTML (was bastardized formof XML)
On Fri, 23 Jun 2000, Eric L. Walstad wrote: Maybe this is a little off topic, but did you have an editor in mind when you changed the syntax? Can you recommend an HTML editor that runs on Windows that will do this? I am currently coding DTML in VisualC++'s IDE using VBScript to paste in the DTML. This method works OK, but if there is something better, I'd love to hear about it. All our webmasters here use HomeSite. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Uninstall on WinNT and the Registry
I was just uninstalling Zope 2.2b1 from a WinNT box, and selected the custom uninstall to see what all it was taking out - and when it got to the part about removing registry keys, it showed some things that looked pretty dodgy.. The dialog box legend says: "The following Registration Database Keys were created during the installation. Select those keys that you want to remove." And then goes on to list quite a few Zope-related things that sound ok, but also lists: SYSTEM SYSTEM\CurrentControlSet SYSTEM\CurrentControlSet\Services That can't be right. If the uninstall really did blow away those parts of the registry tree..you'd be screwed. What's going on here? Barry ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] about double sorting
frank cuzzocrea wrote: i made a tinytablesplus file, and i want their to be two sorts, the primary sort being last_name, and the secondary being first_name. i say a code the read something like this dtml-in xxx sort=last_name,first_name i tryed that, but got an error that said it Error type: AttributeError Error value: last_name,first_name I removed the _names from the tinytableplus file, to make sure it wasnt that, and i got the same error. Any suggestions Are you using Zope 2.2 (b1 or b2)? That's when the multiple-column sorting was introduced. Shane ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Zope 2.2 beta 2 - (MySQLDA)
I've been running 2.0.0 from Andy without any problems. I tried 1.2.0 and it worked equally well. 2.0.0, BTW, can be found at http://dustman.net/andy/python/ZMySQLDA/2.0.0a1. It seemed to me that Andy wrote 2.0.0 primarily because it uses his own MySQLdb python module without having to apply a patch to the DA. Since 1.2.0 now does that as well, I suppose there's little need to use it over the one published on zope.org. None of this came from the mouth of Andy, however, so this is all speculation. ___ Ron Bickers Logic Etc, Inc. [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of T.J. Mannos Sent: Friday, June 23, 2000 11:18 AM To: [EMAIL PROTECTED] Cc: IPM Return requested Receipt notification requested Subject: Re: [Zope] Zope 2.2 beta 2 released Monty, I can't find 1.2.0. I run a search for MySQL and all that comes up is MikeP's version 1.1.3. Come to think of it, I have no idea where I found 2.0.0, either. I think it was on a Zope news announcement for a while then disappeared. Anyway, could you send me the URL to 1.2.0? Thanks, T.J. - Original Message - From: Monty Taylor [EMAIL PROTECTED] To: T.J. Mannos [EMAIL PROTECTED] Cc: IPM Return requested Receipt notification requested [EMAIL PROTECTED] Sent: Friday, June 23, 2000 1:53 AM Subject: Re: [Zope] Zope 2.2 beta 2 released Well, I'm not sure why you would need to change versions as I haven't done any testing of ZMySQLDA on the 2.2 Beta release, but I would suggest downloading and installing ZMySQLDA 1.2.0. Andy's version, 2.0.0, isn't published because he doesn't really want to provide support right now. He does have some things in there that I want to migrate into the current line, and I've already included his changes to use the new backend module. So I can help you out a bit more if you use 1.2.0. But that's your call. I'll see what I can find out in any case, just as soon as I install a 2.2 server somewhere. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Starting Zope on FreeBSD 2.2.8---Python dumps core
I'm having difficulty starting Zope. Versions: Zope: 2.1.6, compiled from source with "python wo_pcgi.py" Python: 1.5.2, (#2, Jan 17 2000) [GCC 2.7.2.1] on freebsd2 Python is compiled with pthreads enabled. FreeBSD: 2.2.8 (yes, I know it is outdated). Problem Description: The compilation process seems to go just fine, with no errors reported. When I invoke the "start" script, I get the following output: -- 2000-06-23T19:42:58 PROBLEM(100) ZServer Computing default hostname -- 2000-06-23T19:43:19 PROBLEM(100) ZServer Computing default hostname -- 2000-06-23T19:43:40 PROBLEM(100) ZServer Computing default hostname -- 2000-06-23T19:44:01 PROBLEM(100) ZServer Computing default hostname continues I've read that this PROBLEM(100) is no big deal, and that the Zope server eventually starts on most installations. Unfortunately with my installation, the server never starts, I cannot resolve 127.0.0.1:8080 and with each iteration, python dumps core. I don't know if it helps, but 'gdb -c python.core' returns the following: Core was generated by `python'. Program terminated with signal 10, Bus error. #0 0x2ef23 in ?? () (gdb) What I've tried: (1) I changed the permissions on the various Zope subdirectories (e.g., id= root, nobody, lorenmc) so that Zope can write to files, but this seems to have no effect; (2) Reviewed ./var/Z2.log, but it is empty; (3) I ran through "z2.py" line-by-line and noticed that python exits when it reaches the portion of the script that calls the "zdaemon.run" function, which seems to be a function that forks processes. Has anyone had this problem? Any advice besides "upgrade to a newer version of FreeBSD or switch to Linux?" Thanks. Loren -- Loren McCarter Graduate Student, Behavioral Neuroscience UC Berkeley ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Python install included with zopeBeta.exe?
Starting over...beta2 not working on IIS. Uninstalling Python Uninstalling Zope (why does running unwise.exe not remove EVERYTHING?) Deleting everything in Zope web site virual directory. Looks like I installed Python and then Zope installed Python again. Did I miss this in the docs? (that Zope installs python in addition to installing Zope with the x86.exe?) Seems like beta2 is working properly now (Quickstart and all). Darren Addy Internet Specialist and Interim Web Presence Coordinator Office of Information Technology Services University of Nebraska at Kearney ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Python install included with zopeBeta.exe?
Starting over...beta2 not working on IIS. Uninstalling Python Uninstalling Zope (why does running unwise.exe not remove EVERYTHING?) It almost never does remove everything Deleting everything in Zope web site virual directory. Looks like I installed Python and then Zope installed Python again. ? I missed the part where you installed Python. But Zope does install it's own Python, to be able to run it right away, without having to fiddle with PYTHONPATH, name clashes and all. Did I miss this in the docs? (that Zope installs python in addition to installing Zope with the x86.exe?) Are there official installing docs then? Never seen 'em (there is something called installation tree at the zdp site, but I lost track of that). Seems like beta2 is working properly now (Quickstart and all). Good. Rik ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Short urls? SHORT URLS???
Geeez, I thought that one of Zope's promises was nice short URLS. Wutts up with this? http://xanadu.unk.edu:8080/QuickStart/index_html?tree-e=eJyLVn eEASdPW3UdBSR-JCrf1cRWPRYAGNELbA#AE4 They _are_ nice and short - if you don't use the Tree tag :^) Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] permissions problem instantiating objects in 2.2b2?
Hi guys, I have a simple piece of code which instantiates an object in Zope 2.1.16, but when I try to run the same code in 2.2b{1,2} I get a dialog box stating that "authorization failed" and asks again for my password. I'm not sure if the API changed in 2.2 or if something's broken in either my code or the 2.2 tree...I'm more than open to suggestions. :) Here's what I'm trying to do: * Created a Product and dropped a ZClass into it, tweaked the constructor so it doesn't redirect when called from my code * Created a DTML method in a folder with reads as follows: dtml-with "manage_addProduct['test']" dtml-call "testClass_add(_.None, _, NoRedir=1)" /dtml-with When I go to view that method, that's when i see the "authorization failed" stuff. Any ideas what's up? John ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] (no subject)
On Fri, Jun 23, 2000 at 04:32:39PM +1000, Jay, Dylan wrote: It seems to me that a few tweaks to the dtml-if syntax would be beneficial something like the following would certainly clean up some of the logic I end up writing. dtml-if X a href="a_url" dtml-always link text dtml-else (no link currently available) dtml-then /a /dtml-if dtml-if X a href="a_url" link text /a dtml-else link text (no link...) /dtml-if Now what's cleaner and easier to the eyes? Or for the obfuscated DTML context: dtml-var "['A HREF=',''][not X]" link text dtml-var "['/A','(no link...)'][not X]" :-) -- "This company has performed an illegal operation and will be shut down. If the problem persists, contact your vendor or appeal to a higher court." - Signal11 on slashdot ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Stupid question of the day
Andy McKay writes: How do I find the size of the results returned by the catalog? dtml-let results=Catalog() dtml-var "_.len(results)" -- the results' length -- /dtml-let Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] R: [Zope] Invalid Header (0) error
Richard Moon writes: I think you are near to the answer. ... sevaral blank lines at start of rendered page ... Zope wants to add a BASENAME URL in the HTML HEAD. Therefore, it looks for an HTML header. Obviously, it gives up with "Invalid Header", when is can not find it near the very start of the page. The relevant code is probably in "ZPublisher.HTTPResponse", maybe "ZPublisher.HTTPRequest". Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZODBC DA Fails to show in installed products.
[EMAIL PROTECTED] writes: I just installed Zope 2.1.6 and the ZODBCDA (ZODBCDA-3.1.0b2-win32-x86.tgz). After unpacking into the lib tree, ZODBC doen't show as an installed product. I've stopped and started the service, rebooted, etc. There is no entry for the ZODBCDA in product management, thus no way to look at the traceback log. Any ideas? A similar problem has been discussed recently in this list. It was suggested to activate the STUPID_FILE_LOGGER. It may report some problems occuring during the import process. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] System variables
Matthias =?ISO-8859-1?Q?F=FCsting?= writes: ... As I create a folder with the name "icon", a error message came from Zope. -- Error Type: Bad Request Error Value: The id icon is invalid - it is already in use. I think "icon" is a system-variable. "icon" is (in some way) part of Zope's management interface. Its value is used as the icon to the left of a description in the folders content view or the tree view. I fear, you have to rename you folder (e.g. to "Icon" or "icons") (or massively change Zope's code). Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] (no subject)
Jay, Dylan writes: Here's a feature I just submitted to the collector. It seems to me that a few tweaks to the dtml-if syntax would be beneficial something like the following would certainly clean up some of the logic I end up writing. dtml-if X a href="a_url" dtml-always link text dtml-else (no link currently available) dtml-then /a /dtml-if What do people think? I've not implemented it but I wouldn't imagine its very hard. I am not in favor. It is only slightly shorter/more readable than the standard solution but requires two additional keywords. In standard Zope, your example reads: dtml-if X a href="a_url" /dtml-if link text dtml-if X /a dtml-else (no link available) /dtml-if Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Problem with date
"Vikas Mahajan" writes: Now my problem is to insert a date type in the properties of folder. The formats like Jan. 07, 2000January 07 2000 jan 07 2000 2000/07/01 all work well in the version 1.2.2 which is a binary release. But, none of the format works with the version 1.2.6 which i had downloaded as source. The error i am getting with the date type data is as follows. Error Type: Invalid Date-Time String Error Value: january 20, 2000 You problem may be caused by trailing whitespace. lindm: python Python 1.5.2 (#9, Aug 5 1999, 20:32:28) [GCC egcs-2.91.60 19981201 (egcs-1.1.1 on linux2 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam import DateTime D=DateTime.DateTime D('january 20, 2000') DateTime('2000/01/20') D('january 20, 2000 ') Traceback (innermost last): File "stdin", line 1, in ? File "DateTime.py", line 520, in __init__ File "DateTime.py", line 790, in _parse Invalid Date-Time String: january 20, 2000 Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Selection
Dear Rogerio Rogerio Atem de Carvalho writes: I have a form with a drop down box and texts fields. I use a button to call a sql method that gets the drop down box selection and the texts inputs as parameters and insert a record in a table. The problem is how to pass the DDB selected string to this sql method (as I do with the text fields). Aparently the sql method is not receiving the selected string. This is really strange because the selected value is passed in exactly the same way as the text fields. Maybe, you have a typo in your form field name. If you use as form action the following DTML method, you will see exactly, what the browser (and Zope) have put into the REQUEST object. When used without explicite parameters, the SQL method uses REQUEST to get its parameter values: dtml-var standard_html_header dtml-var REQUEST dtml-var standard_html_footer If this method shows you that the value comes with the right form name, then maybe your problem results from a bug in Zope 2.1.6. Zope 2.1.6 SQL methods first look into their environment and only then into the supplied arguements. There is a patch for this bug in the collector. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Please test this Zope 2.2 beta 1 ZSQLMethods fix...
That did it! But... :) I ended up having to re-create all my ZSQL methods, which was funny because they all worked in the beta 1 but not in beta 2. I kept getting len() of unsized object errors. Anyway, re-creating them all from scratch (ugh..) solved that problem. BUT, the BIG problem I'm having is still with the external method in courseList.py. I'll attach the file here. It returns a list that can be traversed with the dtml-in tag. I'm still getting Unauthorized errors when trying to access properties of the objects this function returns. For instance, when I run this function on a query sorted by 'term', the first object in the list contains a property called 'open-term'. When I try to access this property within a dtml-in tag, even as Superuser, it gives me an Unauthorized error. I tried everything, even giving anonymous users all privileges to that external method. Nothing worked. Here's my traceback: Unauthorized Sorry, a Zope error occurred. Traceback (innermost last): File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/OFS/DTMLDocument.py, line 168, in __call__ (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py , line 503, in __call__ (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Let.py, line 145, in render (Object: page=id) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 163, in __call__ (Object: course_list) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py , line 503, in __call__ (Object: course_list) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Let.py, line 145, in render (Object: groupby="['term','type','category']" query="db.listCourses(type=type,term=term,keyword=keyword,category=category, inactive=inactive,show_new=PARENTS[0].id=='admin')") File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: extern.courseList(_, groupby=groupby, query=query)) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line 189, in validate (Object: list_courses) File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/AccessControl/SecurityManager .py, line 139, in validate File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/AccessControl/ZopeSecurityPol icy.py, line 158, in validate Unauthorized: open_term Any ideas? Now, it could just be my programming. With the new 2.2 version I may need to add security information to each object (which I don't know how to do). Right now I'm just starting with a blank class and adding a few properties to it. Zope may be looking at it and thinking, "What the heck is this thing?" The idea was to trick Zope into thinking it was a Z SQL query; perhaps 2.2 isn't so easily fooled...? At any rate, we're getting closer... :) - T.J. - Original Message - From: Brian Lloyd [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Brian Lloyd [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 21, 2000 9:25 AM Subject: [Zope] Please test this Zope 2.2 beta 1 ZSQLMethods fix... Hi all, Several folks have reported problems in beta 1 with SQLMethods having authentication problems when trying to call other SQL Methods. I'd like a few intrepid volunteers to try something for me to see if it fixes the problem. I'd like to make a 2.2 beta 2 release tomorrow but I want to make sure this issue is resolved first. Make a backup of the file: lib/python/Shared/DC/ZRDB/DA.py in your current (beta 1) installation and replace it with the DA.py attached to this email, restart and let me know if the problem goes away. Thanks! Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com courseList.py
[Zope] SiteAccess in 2.0.0b2?
I'm having trouble getting SiteAccess 2.0.0b2 to work with Zope 2.2.0b2. The first odd thing that happens is when I create a new SiteRoot, it says that this object already has a SiteRoot (which it doesn't), but creates it anyway. The second is: it doesn't seem to work at all! The value of URL1 still has the :9080 port and the wrong virtual server. Any ideas? - T.J. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Starting Zope on FreeBSD 2.2.8---Python dumps core
+[ Loren M. McCarter ]- | I'm having difficulty starting Zope. | | Versions: | Zope: 2.1.6, compiled from source with "python wo_pcgi.py" | Python: 1.5.2, (#2, Jan 17 2000) [GCC 2.7.2.1] on freebsd2 | Python is compiled with pthreads enabled. | FreeBSD: 2.2.8 (yes, I know it is outdated). The FreeBSD threads support even up until 4.0-RELEASE was attrocious. You will probably find that it is this thread support that is hosing your python, and therfore your Zope. Zope will run on FreeBSD 3.4, 3.5 quite well, but, you really want to have 4.0-Stable on your machine. You will have to upgrade the OS on your machine, be it a switch to Linux, or an upgrade in FreeBSD. -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-always et al
+[ Lalo Martins ]- | On Fri, Jun 23, 2000 at 12:49:16PM +0530, Shalabh Chaturvedi wrote: | Hi: | | Could you give an equivalent using the current dtml tags? | | From: Jay, Dylan [EMAIL PROTECTED] | | dtml-if X |a href="a_url" | dtml-always |link text | dtml-else |(no link currently available) | dtml-then |/a | /dtml-if | | If I understood it correctly: | | dtml-if X | a href="a_url" | /dtml-if | link text | dtml-if X | /a | dtml-else | (no link currently available) | /dtml-if | | | Or alternatively: | | dtml-if X | a href="a_url"link text/a | dtml-else | link text (no link currently available) | /dtml-if Or sometimes you just need to rethink what "clean" is... and where you want clean, and where you're willing to be a little dirty. dtml-call "REQUEST.set('link_url','')" dtml-call "REQUEST.set('link_end','(no link currently available)')" dtml-if X dtml-call "REQUEST.set('link_url','ahref=a_url')" dtml-call "REQUEST.set('link_url','/a')" /dtml-if dtml-var link_urllink textdtml-var link_end I would do it this way, if I could pre-set that text in an earlier dtml-call and the programming logic, would mess up my display flow, it works nicely for dtml-in where you have a list of URL's, and you can hide the ugliness in another place. dtml-in 'url-list' dtml-call "setLinkText(REQUEST)" dtml-var link_urllink textdtml-var link_end /dtml-in 'url-list' -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Problem to init a DTML Document by uploading a file
On Thu, Jun 22, 2000 at 02:18:35PM +0200, Frédéric Quin wrote: Hi all, I did'nt manage to init a DTML Document by uploading a file. I wrote : dtml-call "manage_addDTMLDocument('my_id_html','','/home/index.html') I tried too : dtml-call "manage_addDTMLDocument('my_id_html','',file='/home/index.html') And also : dtml-call "manage_addDTMLDocument('my_id_html','',file_path) Zope always creates a DTML Document and init his body with the path of the file : it never uploads the file... I encounter the same problem with manage_addImage which is a bigest problem... Frederic, The keyword argument "file" is somewhat misnamed. It should really be called "fileContents". I don't know in what context you are using this code but this may clear up your problem: Part of the magic that sucks the file out of your computer whenever you use the browse button to upload the file is provided by the FORM tag. Make sure your tag has the following syntax: FORM ... enctype="multipart/form-data"... if you do not include this on the tag, the browser will send only the name of the file to Zope when you use an input type="file" tag. If enctype is specified as shown above, then you will get the contents of the file in whatever cgi variable you named in your input tag. If you explain why you are calling manage_addDTMLDocument I could be more helpful. -- Andres Corrada-Emmanuel Email: [EMAIL PROTECTED] -- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Problem to init a DTML Document by uploading a file
Sorry, Forgot to add that method="post" is also required in the FORM tag before a file contents is sent along in a posted form. So the required syntax is: FORM ... enctype="mulipart/form-data" ... method="post"... Otherwise, the file-selection field in the form acts like a regular text field. -- Andres Corrada-Emmanuel Email: [EMAIL PROTECTED] -- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Please test this Zope 2.2 beta 1 ZSQLMethods fix...
Hi! I think that you have hit it on the head - we're trying *hard* to make Zope harder to fool :^) Try adding the following to your class statement, for example: class MyClass: __allow_access_to_unprotected_subobjects__=1 Just a question: Is this documented somewhere.. I've seen some more of these things here and wonder if there's some explanation what exactly has changed in 2.2 and which constants can be used to control these things.. (well, my classes seem to work under 2.2, so no problem for me right now but one never knows.. ;-) greetings, Christian ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: [Zope-dev] SiteAccess in 2.0.0b2?
- Original Message - From: T.J. Mannos [EMAIL PROTECTED] I'm having trouble getting SiteAccess 2.0.0b2 to work with Zope 2.2.0b2. The first odd thing that happens is when I create a new SiteRoot, it says that this object already has a SiteRoot (which it doesn't), but creates it anyway. The second is: it doesn't seem to work at all! The value of URL1 still has the :9080 port and the wrong virtual server. Any ideas? What's your platform (win, linux, *bsd)? Is this a Zope database which has been upgraded from an earlier version of Zope? If so, were you using SiteAccess 1.x with that earlier version? Cheers, Evan @ digicool 4-am ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )