[Zope-dev] dtml-try/except triggers namespace bug
Hi, I've run into a bug with dtml-try/except with Zope 2.2.0b3. I have a folder called 'root' that looks like this: one (folder) two (folder) three (folder) a_one (dtml method) a_two (dtml method) index_html (dtml method) index_html looks like this: dtml-try dtml-var "_.getitem('a_%s' % id, 1)" dtml-except KeyError Here goes default information. /dtml-try The idea is to do the following: http://.../root/one -- invoke root/a_one http://.../root/two -- invoke root/a_two http://.../root/one/two -- invoke root/a_two http://.../root/two/one -- invoke root/a_one http://.../root/three-- "Here goes default information." http://.../root -- "Here goes default information." I'm rendering the folders under root (one, two, three, ...) with dtml-tree; I want to reconfigure my tree easily while keeping the leaves' content in one place, i.e., in a_one, a_two, etc. in root. The above works with Zope-2.1.6 but not with Zope-2.2.0b3. Here's the traceback: Zope has encountered an error while publishing this resource. Error Type: TypeError Error Value: unexpected keyword argument: error_type Traceback (innermost last): File C:\pkg\Zope220b3\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\pkg\Zope220b3\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\pkg\Zope220b3\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: ElementWithAttributes) File C:\pkg\Zope220b3\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\pkg\Zope220b3\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: index_html) File C:\pkg\Zope220b3\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: index_html) File C:\pkg\Zope220b3\lib\python\OFS\DTMLMethod.py, line 167, in __call__ (Object: index_html) File C:\pkg\Zope220b3\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: index_html) File C:\pkg\Zope220b3\lib\python\DocumentTemplate\DT_Try.py, line 212, in render File C:\pkg\Zope220b3\lib\python\DocumentTemplate\DT_Try.py, line 244, in render_try_except File C:\pkg\Zope220b3\lib\python\DocumentTemplate\DT_Util.py, line 262, in namespace TypeError: (see above) Traceback says the problem is at DocumentTemplate.DT_Util.namespace(). The 2.1.6 and 2.2.0b3 implementations are different. Plugging in 2.1.6's code fixes _this_ problem: def namespace(self, **kw): """Create a tuple consisting of a single instance whos attributes are provided as keyword arguments.""" #return apply(self, (), kw) # XXX ngps - following is the 2.1.6 implementation r=namespace_() d=r.__dict__ for k, v in kw.items(): d[k]=v return r, Cheers. -- Ng Pheng Siong [EMAIL PROTECTED] * http://www.post1.com/home/ngps ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] LoginManager patch considered harmful (was Re: can't addloginmanager below root) loginmanager below root)
At 09:21 PM 6/28/00 +, Ty Sarna wrote: In article [EMAIL PROTECTED], Shane Hathaway [EMAIL PROTECTED] wrote: Ok folks, I thought I had made it clear that this problem has been solved. I have sent a patch to Ty (about two weeks ago) as well as made the change in Sorry for the delay. I'm just now cacthing up on all my zope-related mail. I've applied this patch, and it will be in the release tonight. However, I am a bit concerned about what happens if _owner is deleted. For purposes of setuid code, we'd like to use the owner as the user to setuid to, but if we can't force it to be the right user, that could be a problem. This will definately need more thought. I'm afraid I've confirmed Ty's fears. The LoginManager patch to fix the "can't add below root" problem creates a new issue: ownership of objects within the LoginManager. I will be asking Ty to make a re-release of 0.8.7 to unpatch part of the patch, but for now, here's a short synopsis of the problem and how to fix it. Shane's patch changes manage_addLoginManager to set ob._owner = UnownableOwner, which is good, because this ensures that AccessControl.Owned.Owned._deleteOwnershipAfterAdd() can del self._owner. (I think that Owned shouldn't be doing this this way, but as yet I don't have a good alternative to propose that DC implement.) The problem is that once this is done, the LoginManager is no longer "unowned". To fix this, add the line: _owner = UnownableOwner to the body of the LoginManager class. This will ensure that even after _deleteOwnershipAfterAdd(), the LoginManager will remain "unowned". After you have made this fix and restarted Zope, you may want to "un-own" any objects contained within your LoginManagers which might have been created with ownership. To do this, you should go to each page of each LoginManager's management interface and copy all objects, then paste them. Delete the originals, and rename the copies back to their old names. The copies will then be "unowned". You can verify this by checking each object's management interface: if it is unowned, it will have no "Ownership" tab. Why does LoginManager want its contents unowned? It has to do with the new security model. When an executable object is owned, the security machinery wants to validate that its owner is allowed to do whatever the executable is doing. This is great except for the fact that in many sites, the owner of the LoginManager's objects is actually a user that was retrieved from that LoginManager. This means that if LoginManager executes an object to find out information about a user, and that object is owned by a user from that LoginManager, infinite recursion and a core dump will swiftly follow. For this reason, you should make sure that all executable objects in a LoginManager are either unowned or owned by a user who is *not* supplied by that LoginManager. In practice, making sure they're unowned is usually easier. ___ 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] Sorting a list
I have a list: mylist=[('R',31),('I',80),('A',80),('S',23),('E',35),('C',21)] I want to rebuild the list sorted from high to low on the sequence-item. When i call dtml-in mylist sort=sequence-item reverse the list gets sorted on the sequence-key not the sequence-item. As I understand the alphabetical characters are the sequence-keys and the float values are the sequence-items. Where do misunderstand? Roché ___ 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 server Dies
My Zope server dies miserably after I install the mysql adapter (it still dies after I delete the adaper files manually.) These are the only error messages I could retrieve from the server. could anyone help me? I use win98 Thanks -IGUN- asynchat.async_chat.handle_error (self) File "H:\Program Files\WebSite\ZServer\medusa\asyncore.py", line 321, in hand e_error self.close() File "H:\Program Files\WebSite\ZServer\HTTPServer.py", line 356, in close p.more() # free up resources held by producer File "H:\Program Files\WebSite\ZServer\Producers.py", line 108, in more getattr(self.logger, self.method)(self.bytes) File "H:\Program Files\WebSite\ZServer\medusa\http_server.py", line 275, in l g ' - - [%s] "%s" %d %d "%s" "%s"\n' % ( File "H:\Program Files\WebSite\ZServer\medusa\logger.py", line 243, in log self.logger.log ('%s%s' % (ip, message)) File "H:\Program Files\WebSite\ZServer\medusa\logger.py", line 77, in log self.write (message) File "H:\Program Files\WebSite\ZServer\medusa\logger.py", line 53, in write self.maybe_flush() File "H:\Program Files\WebSite\ZServer\medusa\logger.py", line 65, in maybe_f ush self.file.flush() IOError: [Errno 9] Bad file descriptor ___ 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 server Dies
Have you read the how-to on http://www.zope.org/Members/philh/mysql ? It worked perfectly for me, except that the libmysql.dll that came with mySQL gave me troubles, but after replacing it with the version mentioned in the how-to everything worked perfectly: Win2000, Zope 2.1.6, mySQL 3.23.19-beta. Gijs Reulen -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Indra Gunawan Verzonden: zaterdag 8 juli 2000 14:16 Aan: [EMAIL PROTECTED] Onderwerp: [Zope] Zope server Dies My Zope server dies miserably after I install the mysql adapter (it still dies after I delete the adaper files manually.) These are the only error messages I could retrieve from the server. could anyone help me? I use win98 Thanks -IGUN- ___ 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 server Dies
Have you read the how-to on http://www.zope.org/Members/philh/mysql ? It worked perfectly for me, except that the libmysql.dll that came with mySQL gave me troubles, but after replacing it with the version mentioned in the how-to everything worked perfectly: Win2000, Zope 2.1.6, mySQL 3.23.19-beta. Gijs Reulen Yes.. I have read that documentation too. I've decided to reinstall the Zope, and everything seems working perfectly now. Thanks for the assistance. But I'm still curious what cause the previous error though. -IGUN- ___ 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] delete objet via a form
This seems to work: delete_form: dtml-var standard_html_header h2dtml-var title_or_id/h2 FORM ACTION="delete" method="POST" dtml-in "objectValues(['File'])" sort=id INPUT TYPE="CHECKBOX" NAME="ids:list" VALUE="dtml-var id" dtml-var idp /dtml-in INPUT TYPE="SUBMIT" /form dtml-var standard_html_footer delete: dtml-var standard_html_header dtml-call "manage_delObjects(ids)" dtml-call "RESPONSE.redirect('delete_form')" dtml-var standard_html_footer -steve "FR" == FR Chalaoux [EMAIL PROTECTED] writes: FR Hi Zopper, FR The Use case == FR 1/ Display file objets from a folder FR 2/ Select objets to delete FR 3/ Delete these objets FR 4/ Refresh the document FR My solution is based on 2 DTML methods but it does not work FR for me. The documents are not deleted and no refresh of the FR page. FR Help is welcome. FR FR. FR DTML Method delete_form dtml-var FR standard_html_header h2dtml-var title_or_id/h2 FORM FR ACTION="http://localhost:8080/Common/Documents/delete" FR method="POST" dtml-in "PARENTS[0].objectValues(['File'])" FR sort=id INPUT TYPE="CHECKBOX" NAME="ids:list" FR VALUE="dtml-var id" dtml-var id p FR /dtml-in INPUT TYPE="SUBMIT" /form dtml-var FR standard_html_footer FR DTML Method delete === dtml-call FR "manage_delObjects(REQUEST['ids'])" dtml-call FR "RESPONSE.redirect(URL1 + '/delete_form')" FR ___ Zope maillist FR - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** FR No cross posts or HTML encoding! ** (Related lists - FR http://lists.zope.org/mailman/listinfo/zope-announce FR 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] Zsql_method doesnt work
Hi, I have the ZSQL-Method: arguments : login select user_passwd as real_password from users where users.user_login=dtml-sqlvar name=login type=string when I now press "change and test" and insert a valid login into the Login-field I get: Error, Missing Input: Missing input variable, login What am I doing wrong Other methods I made this way are working fine ... Thanks, Mario ___ 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] strange catalog problem
Here's a weird one. I'm testing out my products catalog functionality, and I'm seeing strange results. I add an object "A" with an indexed variable called 'styles' that contains the values: ['Ambient', 'Breakbeat', 'Downtempo'] I add a second object "B" with the varaibles: ('Ambient', 'Breakbeat', 'Downtempo', 'Hardcore', 'Hip-Hop', 'House', 'Jungle', 'Techno', 'Trance') When I search for these varables, the results get somewhat mixed up. 3 incorrect searches out of 8. search for: results: Ambient B* Breakbeat AB Downtempo AB HardcoreA* Hip-Hop * House B Jungle B Techno B Trance B All these variables are inputted through a select box, so the spelling/case should be identical. There's some kind of a pattern here though, I don't quite see it. this is the call that I'm using to index the object: self.Catalog.catalog_object(ob,'Promoters/'+id) Anyone have any idea what might be causing this? ___ 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] strange catalog problem
Hi Ed, What version of Zope are you using? If it's 2.1.6 or earlier, have you patched ZCatalog? IIRC, it's slightly broken and causes exactly the same kind of problems as this... http://www.zope.org/Members/chrisw/Squishdot has a link to the fix for this problem on it (somewhere ;-) cheers, Chris PS: 'Downtempo', 'Hardcore', 'Hip-Hop', 'House', 'Jungle', 'Techno', 'Trance') With your taste in music, you should check out http://www.bay-c.co.uk I'm always looking for people to write articles and comment on the ones that are there :-) ___ 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] Newbie questions: Job_board Howto, ZCatalog, Squishdot
Hello, I've started looking into Zope to build our future sites and from what I've seen, I love it. I have installed Zope 2.1.6 and 2.2.0b3 for my tests, running on a RedHat 6.2 server (Apache with pcgi). I had a few problems / questions I wasn't able to find an answer for in the various documents I looked at. So here is a somewhat long list. I came across a little problem that you will most certainly be able to solve. Basically, I've tried to follow step by step the Job Board howto (http://www.zope.org/Members/mukhsein/job_board_howto) to get familiar with the ZCatalog and the ZClasses. Everything works fine with Zope 2.1.6, but I am unable to have it work under Zope 2.2.0b3. I am always getting a standard authorization dialog box. And none of the users I defined in my /acl_users object work. I've seen that Zope 2.2.0 brought many changes on the security and ownership part. I am certain my problem is somewhere in there, but I am unable to find where ;-) One more comment. On the 2.2.0b3 server, Anonymous isn't allowed to see anything except /index_html page and once logged in (users get a particular local role), you have the same rights as you normally have with Anonymous. I didn't change anything on the 2.1.6 server. I hope this isn't the source of my problem. I've seen in this mailing list that there is a bug related to manage_addProduct... will 2.2.0b4 correct my problem? This brings me to another question. I've added a ZCatalog object in the 2.2.0b3 Zope test server. When I go under "Indexes" and wish to delete one of the indexes, I get the following error message (I've cut the long path to make it more readable): Traceback (innermost last): File [...]/lib/python/ZPublisher/Publish.py, line 222, in publish_module File [...]/lib/python/ZPublisher/Publish.py, line 187, in publish File [...]/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ElementWithAttributes) File [...]/lib/python/ZPublisher/Publish.py, line 171, in publish File [...]/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_delIndexes) File [...]/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_delIndexes) File [...]/lib/python/Products/ZCatalog/ZCatalog.py, line 369, in manage_delIndexes (Object: ElementWithAttributes) File [...]/lib/python/Products/ZCatalog/Catalog.py, line 333, in delIndex No Index: (see above) This works with 2.1.6, so I believe it is a bug, or is it a "feature"? About authorization, on the 2.2.0b3 server, I have redefined /standard_error_message (send an email, other layout, ...). It works fine except with I get the "Unauthorized" message. In that case, after canceling the dialog box for example, I get the error message available in dtml-var error_message displayed instead of mailed to me. I've checked that every object used in this standard_error_message method is available to Anonymous (View + Use mailhost services + Access contents information), but it still does not work. Any hint? One last question ;-) I've seen in this mailing list that Squishdot will not work with Zope 2.2.0 until version 0.4.4... when is this version planed? I've tried to install Squisdot on the Zope 2.2.0b3 server and I get the same problem as with my "Job_Board" test... will one solution solve the other? Thank you very much for your help. Best regards, Gérard Métrailler Jr. Meeting Maker Inc. ... the intelligent choice for collaborative scheduling Email: [EMAIL PROTECTED] Web: http://www.meetingmaker.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] delete objet via a form
Thanks, it works fine. FR ___ 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] [Repeat] Nt server w/ Zope
Trying again for help. If I stop Zope as a service from NT's Service Manager or from the Zope management interface it seems to kick and scream while restarting. In the application log I see repeated errors stating the service could not start. These repeat until the application log is full. Zope appears to be running, but I have not yet learned how long it is cycling to start. The error series is essentially, "Starting Zope Service" , "Could not Start Zope Service" until the log is full. From there I'm not sure. Is this a known issue or am I missing a switch setting for start-up? This does not occur from reboot. Everything is as normal as I know normalcy. Thanks ___ 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] Resizing uploaded image in external method with Pil
Resizing uploaded image in external method with Pil Peter Sebrechts [EMAIL PROTECTED] Hello, I have a Form, where I can select an Image to upload, combined with several fill-in fields for the Image-properties. The Form starts with: form action="add_newImage_html" METHOD="POST" ENCTYPE="multipart/form-data" The uploadfield is: input type="file" name="newimage" value="" Next are the other input-fields and the Submit button. The uploadform and the DTMLmethod 'add_newImage_html' reside in the folder 'Images', where the new created image-objects are stored. In each image-object is the uploaded newimage stored, and also a subfolder, where a new created thumbnail from the original image is placed. The resizing to a thumbnail is done in an external method with Pil. And here is my problem: I can pass an Image trough an external method without resizing it. However, when I try to open it with " im = Pil.Image.open(newimage)", I receive an errormessage: 'cannot identify image file' After long searches in the Archives, I'm aware that it has something to do with making the image-data available as a string or as a file-handle. After many trials, I've got only errors... The dtml-method 'add_newImage_html' is as follows: dtml-with REQUEST dtml-if "newimage.filename" dtml-call "REQUEST.set('IDnr',REQUEST.form['new_ IDnr '])" dtml-with "manage_addProduct['ImageProduct']" dtml-call "Imageclass_add(_.None,_, NoRedir=1)" /dtml-with dtml-in "objectValues(['Images'])" dtml-if "(_['sequence-item'].id == REQUEST.form['new_ IDnr '])" dtml-call "REQUEST.set('new_ArtNo',_['sequence-item'])" /dtml-if /dtml-in dtml-call "_['new_ IDnr '].manage_addImage(newimage.filename,newimage)" dtml-call "_['new_ IDnr '].manage_addFolder('preview')" # until now, everything is OK: image-object is created, image stored and previewfolder created. #now, I try to make a thumbnail and store it in the 'preview' folder: dtml-with "_['new_ IDnr '].preview" dtml-call "manage_addImage(newimage.filename,thumbmaker(newimage))" /dtml-with The external method 'thumbmaker': def thumbmaker (self,newimage): """convert image to preview-size (128 x 128) """ import Pil im = Pil.Image.open(newimage) im = im.thumbnail((128,128)) return im I tried also: im = Pil.Image.open(StringIO(newimage)) # (with StringIO imported) and in the dtml-method: dtml-call "manage_addImage(newimage.filename,thumbmaker(str(newimage)))" and passing via REQUEST.newimage from the dtml- to the external method and finally refering to the already stored image was also without result. Ps: I know that Photo does something similar, but it seems me not easy to combine with my multi-inputfield uploadForm. Peter ___ 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] Am I getting the idea correctly?
I'm so new to Zope that I can barely even spell it. But I'm about to spend some time and effort getting proficient with something that enables dynamic, database-connected (and database-updateable) content on web sites so I can sell it to clients, and the appeal of Zope is overwhelming in this arena. I am a very proficient PowerBuilder programmer, but Sybase's offerings are cumbersome and somewhat expensive. I am well versed in many of Microsoft's products, particularly VBA for its Office products, but I worry greatly about using anything from Microsoft because it's hard to know when I'll run into a "gotcha" that I'll curse myself for later on. Cold Fusion and other products seem a happy medium but the CF server piece is about $5k, and some others are more expensive. But here's what worries me about Zope: it looks I will do a whole lot of typing and get caught up in the syntax and repetitive nature of things like dtml-var -- and dtml-this - and dtml-that - . OK, so it's not made for the faint-of-heart at this point - I can handle that. But I also am not an HTML maven, and it looks like I need to have full HTML expertise to make this work also. GUI tools take the drudge out of a href="something"something and h2this is a heading/h2 pretty well, but I don't see how to get out of this stuff with Zope, especially since it looks like everything is stored internally in a data file that I can't access from the outside. Am I correct? Or is there help on the horizon for those of us who have no graphic design skills and shudder actually believe there's a place for GUI-based tools? Thanks for any light you might shed on this subject for me - -Frank
Re: [Zope] MySQLDA Won't build
What version of MySQL is it? - Original Message - From: Darin Lee To: [EMAIL PROTECTED] Sent: 08 July 2000 22:35 Subject: [Zope] MySQLDA Won't build Help, I cannot get the MySQL Database Adaptor to build. Error: gcc -shared _mysqlmodule.o -L/usr/local/lib/mysql -o _mysqlmodule.soWhoa, couldn't import _mysql: ./_mysqlmodule.so: undefined symbol: mysql_store_resultProbably _mysqlmodule.so didn't compile correctly.Or your library paths may be bad. Check the FAQ. I checked the faq (also downloaded and compiled lastest versions - MySQL, Python, and Zope from source) - nada. I've set LD_LIBRARY_CONFIG, I've also edited the "Setup.in" file many, many times. No joy (My MySQL is in /usr/local). System is Redhat 6.1 - Intel... Any idea on what could be wrong?? Thanks, -Darin Lee
Re: [Zope] Am I getting the idea correctly?
You still have to write dtml by hand, but you could say Dreamweaver to connect via FTP to Zope. You can then edit the documents in html. Or use you favorite WSYIWYG and ftp / cut and paste them in. For a tool that includes all the dtml check out the one day it might be ready - Zope Studio. - Original Message - From: Frank Isaacs To: [EMAIL PROTECTED] Sent: Saturday, July 08, 2000 2:37 PM Subject: [Zope] Am I getting the idea correctly? I'm so new to Zope that I can barely even spell it. But I'm about to spend some time and effort getting proficient with something that enables dynamic, database-connected (and database-updateable) content on web sites so I can sell it to clients, and the appeal of Zope is overwhelming in this arena. I am a very proficient PowerBuilder programmer, but Sybase's offerings are cumbersome and somewhat expensive. I am well versed in many of Microsoft's products, particularly VBA for its Office products, but I worry greatly about using anything from Microsoft because it's hard to know when I'll run into a "gotcha" that I'll curse myself for later on. Cold Fusion and other products seem a happy medium but the CF server piece is about $5k, and some others are more expensive. But here's what worries me about Zope: it looks I will do a whole lot of typing and get caught up in the syntax and repetitive nature of things like dtml-var -- and dtml-this - and dtml-that - . OK, so it's not made for the faint-of-heart at this point - I can handle that. But I also am not an HTML maven, and it looks like I need to have full HTML expertise to make this work also. GUI tools take the drudge out of a href="something"something and h2this is a heading/h2 pretty well, but I don't see how to get out of this stuff with Zope, especially since it looks like everything is stored internally in a data file that I can't access from the outside. Am I correct? Or is there help on the horizon for those of us who have no graphic design skills and shudder actually believe there's a place for GUI-based tools? Thanks for any light you might shed on this subject for me - -Frank
RE: [Zope] Am I getting the idea correctly?
You can use whatever GUI type tools you currently use to create your web pages to use with Zope. This will not make the best use of Zope, but it will work. Zope makes available an FTP interface to its internal database structure, so it is possible to use it more or less exactly as you would with a standard Unix based web serving system. My girlfriend is a fledging webbie, and her experience is interesting. She started off being completely gung-ho about GUI-based tools, but now prefers to use tools that let her work directly with the HTML. If you try to use Zope in the same way as a conventional simple web server then you will probably be underwhelmed - it will work, but no better/worse than the more usual ways of doing this. It definitely pays to play with it a bit, and to try out a number of products. I had been studiously ignoring ZCatalog until recently when I needed to change the behaviour of a supplied product (something to provide threaded discussions). What would have been significant work with other systems turned out to be trivial in Zope (once I had worked out how to do it :-). Richard - But here's what worries me about Zope: it looks I will do a whole lot of typing and get caught up in the syntax and repetitive nature of things like dtml-var -- and dtml-this - and dtml-that - . OK, so it's not made for the faint-of-heart at this point - I can handle that. But I also am not an HTML maven, and it looks like I need to have full HTML expertise to make this work also. GUI tools take the drudge out of a href="something"something and h2this is a heading/h2 pretty well, but I don't see how to get out of this stuff with Zope, especially since it looks like everything is stored internally in a data file that I can't access from the outside. Am I correct? Or is there help on the horizon for those of us who have no graphic design skills and shudder actually believe there's a place for GUI-based tools? Thanks for any light you might shed on this subject for me - -Frank ___ 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] SV: [Zope] http://www.zope.org: HORRIBLE HTML
Please, take a look at the errors the validator outputs before you post messages like "Is Zope buggy..." Well you did at least draw some attention to the thing, but I must be honest and say that I'm quite happy with the way Zope produces HTML. Hope you don't feel like I'm barking back, but after having looked at it closer, the HTML is not bad at all. Cheers, Peter - Original Message - From: Svante Kleist [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 07, 2000 5:35 PM Subject: [Zope] "http://www.zope.org": HORRIBLE HTML Has anybody tried to validate the Zope homepage? Like so: URL: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.zope.org%2F My attention was drawn to this sad fact when I reported (was I thought was) a bug in Mozilla: URL: http://bugzilla.mozilla.org/show_bug.cgi?id=44757 Is Zope buggy, producing HTML like this? Svante Kleist NEMESIS systemDesign, Stockholm ___ 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 )
Re: [Zope] cr/lf causing spaces
Hello Folks, One of my "favorite" issues with win/DOS has always been its use of CR+LF combinations. Why? Because all browsers interpret the thing as a SPACE. AFAIK this is an HTML thing, not a win/DOS thing. The HTML spec treats any whitespace as a space. Would it be possible for Zope (which has to parse the dtml files etc anyway) to convert cr+lf to plain cr? The problem I have currently is that if I format my dtml source nice and orderly, I end up having spaces in my Output where I don't want any... Or is there already a way to avoid this? I ran into the same problem (using Linux), and there isn't really anyway to get around it, apart from having un-nicely formatted DTML source. Benno ___ 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] cr/lf causing spaces
On Sun, 9 Jul 2000, Ben Leslie wrote: One of my "favorite" issues with win/DOS has always been its use of CR+LF combinations. Why? Because all browsers interpret the thing as a SPACE. AFAIK this is an HTML thing, not a win/DOS thing. The HTML spec treats any whitespace as a space. Well unix uses only cr by default, and browsers do not interpret that as a whitespace. Or is there already a way to avoid this? I ran into the same problem (using Linux), and there isn't really anyway to get around it, apart from having un-nicely formatted DTML source. Maybe a problem with the way the textarea editor netscape etc work. Nils ___ 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 )