Re: [Zope-dev] Re: http access to svn repos?
Tino Wildenhain wrote: I would support HTTP anonymous checkouts. I'm really against writable HTTP checkouts because I consider the credentials mechanism for HTTP access to be extremely lame. whether SVN or not, I'm guessing any use of HTTP basic authentication mechanism qualifies as extremely lame! I've no idea if this is what Jim meant though :) Well, I hope ;) Why? The password are never sent over the wire unencrypted? Yes, caching them locally in cleartext blows a lot, especially since the files and directories that contain them are world readable, but this is a bug we should raise with the svn guys. That said, I'll ask again, why are we so paranoid about security? WE're working on a piece of open source software here... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: http access to svn repos?
Jim Fulton wrote: OK, for those not familiar with svn/HTTP authentication, as I understand it you have to authenticate for each session and your credentials are cached in clear text in your home directory. Well, you _either_ have to authenticate once per session _or_ your credentials are cached in clear text in .subversion/auth/basic/xxx. The storage of clear-text credentials is obviously lame, Yeah, I wonder if anyone has reported this as a bug to the svn people? as is the necessity to provide then for each svn session. Well, if you accept one lame-ness then you never have to provide credentials again ;-) With the current ssh-based mechanism, I authenicate once when I log into my machine and don't have to authenticate again for the remainder of that OS session, during which I can log into many remote machines and access many different Subversion and CVS repositories without having to reenter credentials. I find this to be a major convenience. ...outweighed by getting public keys onto the right servers, getting the damn putty session to find the keys and getting Tortoise and the command line client to use the right putty session :-/ Chris :'( -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: http access to svn repos?
On 3/8/06, Jim Fulton [EMAIL PROTECTED] wrote: OK, for those not familiar with svn/HTTP authentication, as I understand it you have to authenticate for each session and your credentials are cached in clear text in your home directory. The storage of clear-text credentials is obviously lame, as is the necessity to provide then for each svn session. Client certificates are the SSL equivalent of ssh keys and can, like keys, be protected by a passphrase. Without some form of passphrase-caching agent, you'd have to re-enter your passphrase every time too though, or (*shudder*) put your passphrase into the .subversion/servers config file, and you are back to square one. -- Martijn Pieters ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: [Zope2] ZODB load optimization ineffective due to ExtensionClass flaw
Jim Fulton wrote at 2006-3-8 10:46 -0500: Dieter Maurer wrote: The ZODB allows to include the class (a reference to it) into persistent references in order to avoid loading the object state when a ghost object needs to be created for the persistent reference. ... Unfortunately, ExtensionClass.Base defines __getnewargs__. It is the base class for all Zope2 classes. Zope2 persistent references are not optimized... ... [Jim] I'd have to review this, but I'm pretty sure that we dealt with this issue, but I could be mistaken. After I have checked that the Zope[2] SVN trunk version, too, cannot use the optimization, I filed a feature request with solution: http://www.zope.org/Collectors/Zope/2042 I adapted the ExtensionClass tests and verified that all tests in my Zope 2.8.1 installation continue to work despite my change. -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [ZWeb] Zope 3 Website
Lennart Regebro wrote: Of course not, you are a total thinker, and not affected positively about people bragging. But most other people are. It's all about hype. I'll take that as a compliment ;-) Do we really want people that are attracted? How are they going to benefit our community? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-web maillist - Zope-web@zope.org http://mail.zope.org/mailman/listinfo/zope-web
Re: [Zope] Help needed to simplify some code
Paul Winkler wrote: span tal:define=opts python:here.lib.parse_file(file=here.news,sepr=',',clone=1) li repeat=opt opts a tal:content=python:opt/label ^^^ Leave out the python: there. Whoops, yep, sorry about that... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Upgrading to Zope 2.9.1
Patrick Decat wrote: I had the same problem : Windows CR/LF line endings are not supported anymore for PythonScripts. According to Dieter Maurer, it has to do with Python 2.4 rather than Zope 2.9. Really? I find that pretty suprising. Python has never cared about line endings before and I'd be pretty mortified if it started now :-( Dieter? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] i18nfolder installation attribute error navigation_properties
hello, when i try to install i18nfolder on plone (with quickinstaller or manually), i get this error : = 2006-03-08 17:55:43 failed: Traceback (most recent call last): File /zope/bioinfo/Products/CMFQuickInstallerTool/QuickInstallerTool.py, line 320, in installProduct res=install(portal) File /usr/local/www/zope-2.8.6/lib/python/Products/ExternalMethod/ExternalMethod.py, line 225, in __call__ try: return f(*args, **kw) File /zope/test/Products/I18NFolder/Extensions/Install.py, line 26, in install installation=Installation(self) File /zope/test/Products/I18NFolder/Installation.py, line 26, in __init__ self.navigation_properties = self.portal_properties.navigation_properties AttributeError: navigation_properties what should i do ? thanks thomas desvenain ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] call htmlformuploadfile from dtml method
maybe my question is not that understandable. I tried with a normal testform and a testaction (form with some fields like name, firstname, ... and an action that returns the values in a little hello firstname, ...) now I changed the form action to testmethod and made a testmethod that calls dtml-var testAction. so actually it's the same. and this works. but now: when working with plonelocalfolderNG, I saw in the standard given page, that the form action is just: htmlformuploadfile. so I copied a small form in my testform, and used formaction htmlformuploadfile. and all works, he uploads the file to the external folder. but now I tried to move the formaction to the testmethod (dtml-var testAction to dtml-var htmlformuploadfile) and this doesn't work, I keep getting a keyerror on htmlformuploadfile what am I doing wrong? it's quite urgent Olivier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Olivier Wambacq Sent: donderdag 9 maart 2006 8:54 To: zope Subject: [Zope] call htmlformuploadfile from dtml method hello, in plonelocalfolderNG you have the htmlformuploadfile method, that is called in the form action. but I needed to save everything in a db also, so I called a dtml method in the form action. whitch first calls the db-store scripting, and then the htmlformuploadfile. everything is stored well in the db now, but now I don't know how to call the htmlformuploadfile from this script. I tried some things like: dtml-var htmlformuploadfile or dtml-var http://../htmlformuploadfile also tried using dtml-call ... but nothing seems to work, he always says htmlformuploadfile doesn't exist. I tought I just had to call the same thing as in the action argument, but how do I know how to call it when I call it from a dtml method instead? thanks in advance Olivier ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] i18nLayer error
hello, i have a question about I18NLayer 0.6.0, this time i have installed PloneLanguageTool and, then, I18NLayer when i create a i18nlayer content, and then a translation, i got this error : Site error This site encountered an error trying to fulfill your request. The errors were: Error Type TypeError Error Value 'str' object is not callable Request made at 2006/03/09 10:37:36.972 GMT+1 Traceback (innermost last): Module ZPublisher.Publish, line 114, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module Products.CMFCore.FSPageTemplate, line 195, in _exec Module Products.CMFCore.FSPageTemplate, line 134, in pt_render Module Products.PageTemplates.PageTemplate, line 104, in pt_render - FSPageTemplate at /siteTestI18NLayer/document_view used for /siteTestI18NLayer/tests/i18nlayer.2006-03-09.8519478847/fr Module TAL.TALInterpreter, line 206, in __call__ Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 711, in do_useMacro Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 426, in do_optTag_tal Module TAL.TALInterpreter, line 411, in do_optTag Module TAL.TALInterpreter, line 406, in no_tag Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 742, in do_defineSlot Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 426, in do_optTag_tal Module TAL.TALInterpreter, line 411, in do_optTag Module TAL.TALInterpreter, line 406, in no_tag Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 690, in do_defineMacro Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 677, in do_condition Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 426, in do_optTag_tal Module TAL.TALInterpreter, line 411, in do_optTag Module TAL.TALInterpreter, line 406, in no_tag Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 711, in do_useMacro Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 711, in do_useMacro Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 677, in do_condition Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 426, in do_optTag_tal Module TAL.TALInterpreter, line 411, in do_optTag Module TAL.TALInterpreter, line 406, in no_tag Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 477, in do_setLocal_tal Module Products.PageTemplates.TALES, line 221, in evaluate - URL: file:I18NLayer/skins/i18n_layer_plone2/global_languagemenu.pt - Line 9, Column 6 - Expression: PythonExpr here.getI18NDefinedLanguages().keys() - Names: {'container': PloneSite at /siteTestI18NLayer, 'context': ATDocument at /siteTestI18NLayer/tests/i18nlayer.2006-03-09.8519478847/fr, 'default': Products.PageTemplates.TALES.Default instance at 0x41099a2c, 'here': ATDocument at /siteTestI18NLayer/tests/i18nlayer.2006-03-09.8519478847/fr, 'loop': Products.PageTemplates.TALES.SafeMapping object at 0x437ed54c, 'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x4109fa8c, 'nothing': None, 'options': {'args': ()}, 'repeat': Products.PageTemplates.TALES.SafeMapping object at 0x437ed54c, 'request': HTTPRequest, URL=http://138.102.22.7:9081/siteTestI18NLayer/tests/i18nlayer.2006-03-09.8519478847/fr/document_view, 'root': Application at , 'template': FSPageTemplate at /siteTestI18NLayer/document_view used for /siteTestI18NLayer/tests/i18nlayer.2006-03-09.8519478847/fr, 'traverse_subpath': [], 'user': admin} Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__ - __traceback_info__: here.getI18NDefinedLanguages().keys() Module Python expression here.getI18NDefinedLanguages().keys(), line 1, in expression Module Products.CMFCore.FSPythonScript, line 108, in __call__ Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module Products.CMFCore.FSPythonScript, line 163, in _exec Module None, line 20, in getI18NDefinedLanguages - FSPythonScript at /siteTestI18NLayer/getI18NDefinedLanguages used for /siteTestI18NLayer/tests/i18nlayer.2006-03-09.8519478847/fr - Line 20 TypeError: 'str' object is not callable ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] dtml methods and namespace
Hi to everybody, I have a simple dtml-method assignment-action that is called upon a form post. Depending on the form request data, a dtml-if chooses between one of two dtml-documents : assigment-success and assignment-failure : dtml-if iscorrect() dtml-var assignment-success dtml-else dtml-var assignment-failure /dtml-if My trouble is that neither the assignment-success nor the assignment-failure dtml-documents seem to be pushed on the namespace : inside them title_or_id references data from their caller, this() and PARENTS do not evaluate right... is there a smarter way to call a dtml-document inside a dtml-method (), so that it it pushed on the namespace stack? Should I use somehow the dtml-with tag? I understand that page templates would be way easier and cleaner, but I would like to complete this project and then try them out in the next one... thank you in advance, Luca ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] getView/getMultiAdapter and 'global name 'view' is not defined'
Hello I have a view defined for my content class that uses both view template and view class. In zcml it looks like: browser:page for=.xyz.IXyz class=.browser.xyz_view.XyzView template=xyz_body.pt name=render permission=zope2.View / in 'xyz_body.pt' I have statements like: div tal:define=xyz_dict python: view.xyz_function(); where 'xyz_function' is defined in 'XyzView' class. Calling @@render from another view or directly by URL in browser works, but when I'm using: rnd = zapi.getMultiAdapter((self.xyz_instance, self.REQUEST), Interface, name='render') or rnd = getView(self.xyz_instance, 'render', self.REQUEST) where 'xyz_instance' is a instance of content class (in ZODB) that implements IXyz I get: NameError Exception Valueglobal name 'view' is not defined Traceback (innermost last): Module ZPublisher.Publish, line 114, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module Products.XyzBase.XyzBase line 178, in save_form Module Products.XyzModule.xyz_emailer, line 51, in save_data Module Products.Five.browser.metaconfigure, line 403, in __call__ Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module Products.PageTemplates.PageTemplateFile, line 110, in _exec Module Products.PageTemplates.PageTemplate, line 104, in pt_render ImplicitAcquirerWrapper object at 0xb351b80c Module TAL.TALInterpreter, line 238, in __call__ Module TAL.TALInterpreter, line 281, in interpret Module TAL.TALInterpreter, line 507, in do_setLocal_tal Module Products.PageTemplates.TALES, line 221, in evaluate URL: index Line 1, Column 0 Expression: PythonExpr view.xyz_function() Names: ...cutted here... Module Products.PageTemplates.PythonExpr, line 70, in __call__ __traceback_info__: view.xyz_function() Module string, line 2, in f NameError: global name 'view' is not defined How can I call such view from python code? I'm using Zope 2.9.1. In Zope 2.8.5 it was possible to use context.xyz_function() instead of view.xyz_function() but now it causes errors. One more question - is it necessary to inherit from Products.Five.BrowserView in view class? I think that I've found somwhere that ZCML itself puts BrowserView into base clases of view class...? -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] manage_pasteObjects question
Hi David, I reviewed OFS.CopySupport.py which is how I knew that eInvalid exception is being raised. I also called manage_cutObjects with the REQUEST as you mention. That's what is weird about this whole thing. I know that I had clipboard data and the __cp cookie is set. Everytime I tried to do the paste, I'd get the "cookie truncated" message. You're right about the documentation. As with most Zope documentation, it's not that great. Lately, I go straight to the source. I find I learn more that way. Thanks, Tom From: David [mailto:[EMAIL PROTECTED] Sent: Thursday, March 09, 2006 12:44 AMTo: Palermo, TomCc: 'zope@zope.org'Subject: Re: [Zope] manage_pasteObjects question Palermo, Tom wrote: Hi David, In my last post, I wrote that I tried calling manage_pasteObjects a variety of ways: context.manage_pasteObjects(context.REQUEST) context.manage_pasteObjects(context.cb_dataItems()) as well as the original: context.manage_pasteObjects(cb_copy_data=context.cb_dataItems(),REQUEST=req['__cp']) All 3 of these attemps results in the eInvalid exception gettting raised by manage_pasteObjects( ). req['__cp'] is a reference to the cookie that gets set when you place something on the clipboard. I was trying to grab a specific piece of the REQUEST instead of the whole thing. Does context.manage_pasteObjects(context.REQUEST) need to be written as: context.manage_pasteObjects(REQUEST=context.REQUEST)? It's kind of a moot point now anyway. I'm using some SESSION variables now to store the ids of te objects I want to cut and the path of their container so I can do the cut and paste from a single script. Not sure if this is good or not but it's working for me now. It's one of those times when I just need something to work. -Tom Hi Tom,I'm glad you found 'another way' but in the interest of no one I wish to add the following.These methods: manage_copyObjects, manage_cutObjects and manage_pasteObjects should be reviewed in /OFS/CopySupport.py - because the current docs do not describe them well.For example, the copy method works differently depending on whether you just pass the container's Ids or pass the Ids *and* the REQUEST.No reason to beat a dead horse but of the 3 tries you listed only the first can (but conditionally) work:context.manage_pasteObjects(context.REQUEST) But *only* if you first called manage_copyObjects (or manage_cutObject) with the REQUEST as a parameter included (only then does REQUEST get the __cp object)Your second try:context.manage_pasteObjects(context.cb_dataItems())Is wrong because it is passing a list of items in the clip board instead of the the encoded copy object (returned by manage_copyObjects) that "manage_pasteObjects" expectsYour last try is wrong because both parameters are incorrect. :-)All best,David ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml methods and namespace
Luca Dall'Olio wrote: Hi to everybody, I have a simple dtml-method assignment-action that is called upon a form post. Depending on the form request data, a dtml-if chooses between one of two dtml-documents : assigment-success and assignment-failure : dtml-if iscorrect() dtml-var assignment-success dtml-else dtml-var assignment-failure /dtml-if My trouble is that neither the assignment-success nor the assignment-failure dtml-documents seem to be pushed on the namespace : inside them title_or_id references data from their caller, this() and PARENTS do not evaluate right... is there a smarter way to call a dtml-document inside a dtml-method (), so that it it pushed on the namespace stack? Should I use somehow the dtml-with tag? I understand that page templates would be way easier and cleaner, but I would like to complete this project and then try them out in the next one... thank you in advance, Luca Luca, Not sure exactly whats going on there ... but there are significant differences between dtml methods and dtml documents and how they view identity. David ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml methods and namespace
Luca Dall'Olio wrote at 2006-3-9 11:47 +0100: I have a simple dtml-method assignment-action that is called upon a form post. Depending on the form request data, a dtml-if chooses between one of two dtml-documents : assigment-success and assignment-failure : dtml-if iscorrect() dtml-var assignment-success dtml-else dtml-var assignment-failure /dtml-if My trouble is that neither the assignment-success nor the assignment-failure dtml-documents seem to be pushed on the namespace : inside them title_or_id references data from their caller That is strange. In fact, a DTMLDocument (unlike a DTMLMethod!) extends the passed in client by self.aq_explicit. Note, that due to the use of aq_explicit, acquisition through your DTMLDocument is restricted. this() and PARENTS do not evaluate right... PARENTS is set after the traversal phase. Lateron, it is not changed -- e.g. not changed by calls of DMTL objects. is there a smarter way to call a dtml-document inside a dtml-method (), so that it it pushed on the namespace stack? It should be pushed automatically (as long as it is really a DTMLDocument. Of course, you can control the context yourself, e.g. by dtml-var doc(doc,_) In this case, you pass doc (assumed to be your DTML document) explicitly as client. -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Upgrading to Zope 2.9.1
Chris Withers wrote at 2006-3-9 08:10 +: ... Really? I find that pretty suprising. Python has never cared about line endings before and I'd be pretty mortified if it started now :-( Dieter? It does now -- at least for FSPythonScripts when you are on a *nix platform and your files contain DOS lineends. You then will get (starting with Python 2.4) SyntaxErrors at line ends. Of course, things are different when you are on a Windows platform and your files contain DOS lineends... -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Upgrading to Zope 2.9.1
On 3/9/06, Dieter Maurer [EMAIL PROTECTED] wrote: Chris Withers wrote at 2006-3-9 08:10 +: ... Really? I find that pretty suprising. Python has never cared about line endings before and I'd be pretty mortified if it started now :-( Dieter? It does now -- at least for FSPythonScripts when you are on a *nix platform and your files contain DOS lineends. You then will get (starting with Python 2.4) SyntaxErrors at line ends. Of course, things are different when you are on a Windows platform and your files contain DOS lineends... Different in what way? I was experiencing difficulty on a Windows platform. The scripts in question have never seen anything other than Windows. Are you indicating that the line end issue is not what I was experiencing? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How do I do this using Zope?
We use COREBlog, http://coreblog.org/ , for our news page since July 2004. It works great for a news page. See http://www.library.appstate.edu/blog/news/ . The Recent Entries, Categories, and Archives links in the right column are automatically updated by the product. You can customize the look, use, and feel. Thomas On Monday 06 March 2006 04:48, John Poltorak wrote: I would like to create a folder (news) which contains several news items, lets say news1, news2, news3. I would like to set up a menu box which lists all the news items in the news folder which when clicked on would load each one up. How do I code this up? (Hope someone understands what I'm getting at) -- Thomas McMillan Grant Bennett Appalachian State University Computer Consultant III P O Box University Library Boone, North Carolina 28608 Please use the Systems Help Desk at http://linux.library.appstate.edu/help All in Systems receive an email with each submission. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Upgrading to Zope 2.9.1
On 3/9/06, Einar Næss Jensen [EMAIL PROTECTED] wrote: On 3/9/06, Brian Sullivan [EMAIL PROTECTED] wrote: On 3/9/06, Dieter Maurer [EMAIL PROTECTED] wrote: Chris Withers wrote at 2006-3-9 08:10 +: ... Really? I find that pretty suprising. Python has never cared about line endings before and I'd be pretty mortified if it started now :-( Dieter? It does now -- at least for FSPythonScripts when you are on a *nix platform and your files contain DOS lineends. You then will get (starting with Python 2.4) SyntaxErrors at line ends. Of course, things are different when you are on a Windows platform and your files contain DOS lineends... Different in what way? I was experiencing difficulty on a Windows platform. The scripts in question have never seen anything other than Windows. Are you indicating that the line end issue is not what I was experiencing? ___ My guess is that it would be difficult to say anything about that without any errormessages? What did it say in your line 3, and what made you look there? Something like: invalid syntax (Script (Python), line 3) (in a pink box when the script was opened for editing via the ZMI) Since I saved the script and the problem went away I can't be totally sure. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Upgrading to Zope 2.9.1
Attached is is screenshot of the error message. There is no error in the event log. Steps to reproduce : - Create a Python Script on the file system with Windows style line-endings - Go to http://localhost:8080/manage - Click the drop down list to add a Python Script - Enter test_eol in the id field - Click Browse to find and select your script on the filesystem - Click Add - Error : invalid syntax (Script (Python), line 2) - Click Save changes - the error is gone. System information : - Windows 2000 SP4 (client and server) - Zope 2.9.1 (fresh install with http://www.zope.org/Products/Zope/2.9.1/Zope-2.9.1-win32.exe installer) - Only product installed : ExternalEditor 0.9.1 # Zope version: (Zope 2.9.1, python 2.4.2, win32) # Python version: 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] # System Platform: win32 # SOFTWARE_HOME: C:\Program Files\Zope-2.9.1\lib\python # INSTANCE_HOME: D:\Zope-Instance # CLIENT_HOME: D:\Zope-Instance\var # Process ID: 1080 (1460) # Running for: 14 min 14 sec # sys.path: D:\Zope-Instance\lib\python D:\Zope-Instance\lib\python C:\Program Files\Zope-2.9.1\lib\python\Zope2\Startup C:\Program Files\Zope-2.9.1\lib\python C:\Program Files\Zope-2.9.1\lib\python C:\Program Files\Zope-2.9.1\bin\python24.zip C:\Program Files\Zope-2.9.1\bin\DLLs C:\Program Files\Zope-2.9.1\bin\lib C:\Program Files\Zope-2.9.1\bin\lib\plat-win C:\Program Files\Zope-2.9.1\bin\lib\lib-tk C:\Program Files\Zope-2.9.1\bin C:\Program Files\Zope-2.9.1\bin\lib\site-packages C:\Program Files\Zope-2.9.1\bin\lib\site-packages\win32 C:\Program Files\Zope-2.9.1\bin\lib\site-packages\win32\lib C:\Program Files\Zope-2.9.1\bin\lib\site-packages\Pythonwin On 3/10/06, Brian Sullivan [EMAIL PROTECTED] wrote: Something like: invalid syntax (Script (Python), line 3) (in a pink box when the script was opened for editing via the ZMI) Since I saved the script and the problem went away I can't be totally sure. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) zope-2.9.1-windows-eol.png Description: PNG image ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )