Re: [Zope] Strange errors while 'make'ing
These are warnings coming from GCC (as opposed to errors, which would prevent compilation from finishing). GCC 4.X emits these pointer signedness warnings whereas earlier GCC versions did not. This issue has been fixed on the Zope trunk, I believe (the codebase which will become Zope 2.10). - C On Mar 20, 2006, at 9:23 PM, a blob of green gelatin wrote: Hi all, I've been checking out the archives in an attempt to find an already-published answer to my problem and have only found one thread which comes close to describing what I'm seeing. When run 'configure', there are no problems. Once I try making things, I get strange errors which I suppose are probably python- related: slimemold[52]:/tmp/Zope-2.9.1% ./configure --prefix=/usr/local/bin/ zope Configuring Zope installation Testing for an acceptable Python interpreter... Python version 2.4.1 found at /usr/bin/python Python version 2.4.1 found at /usr/bin/python2 Python version 2.4.1 found at /usr/bin/python2.4 Python version 2.4.2 found at /usr/local/bin/python The optimum Python version (2.4.2) was found at /usr/local/bin/python. slimemold[53]:/tmp/Zope-2.9.1% make /usr/local/bin/python install.py -q build In file included from Dependencies/BTrees-Zope-2.9.1/BTrees/ BTreeModuleTemplate.c:335, from Dependencies/BTrees-Zope-2.9.1/BTrees/ _fsBTree.c:70: Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c: In function âgetBucketEntryâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:238: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:242: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:249: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:252: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness In file included from Dependencies/BTrees-Zope-2.9.1/BTrees/ BTreeModuleTemplate.c:336, from Dependencies/BTrees-Zope-2.9.1/BTrees/ _fsBTree.c:70: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function â_bucket_getâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:93: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function âBucket_maxminKeyâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:713: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function âbucket_keysâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:829: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function âbucket_valuesâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:867: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function âbucket_itemsâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:907: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:911: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function âbucket_byValueâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:955: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:961: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function âbucket_getstateâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:1134: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:1140: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:1151: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness In file included from Dependencies/BTrees-Zope-2.9.1/BTrees/ BTreeModuleTemplate.c:337, from Dependencies/BTrees-Zope-2.9.1/BTrees/ _fsBTree.c:70: Dependencies/BTrees-Zope-2.9.1/BTrees/SetTemplate.c: In function âset_itemâ: Dependencies/BTrees-Zope-2.9.1/
[Zope] Strange errors while 'make'ing
Hi all, I've been checking out the archives in an attempt to find an already-published answer to my problem and have only found one thread which comes close to describing what I'm seeing. When run 'configure', there are no problems. Once I try making things, I get strange errors which I suppose are probably python-related: slimemold[52]:/tmp/Zope-2.9.1% ./configure --prefix=/usr/local/bin/zope Configuring Zope installation Testing for an acceptable Python interpreter... Python version 2.4.1 found at /usr/bin/python Python version 2.4.1 found at /usr/bin/python2 Python version 2.4.1 found at /usr/bin/python2.4 Python version 2.4.2 found at /usr/local/bin/python The optimum Python version (2.4.2) was found at /usr/local/bin/python. slimemold[53]:/tmp/Zope-2.9.1% make /usr/local/bin/python install.py -q build In file included from Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeModuleTemplate.c:335, from Dependencies/BTrees-Zope-2.9.1/BTrees/_fsBTree.c:70: Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c: In function âgetBucketEntryâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:238: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:242: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:249: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeItemsTemplate.c:252: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness In file included from Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeModuleTemplate.c:336, from Dependencies/BTrees-Zope-2.9.1/BTrees/_fsBTree.c:70: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function â_bucket_getâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:93: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function âBucket_maxminKeyâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:713: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function âbucket_keysâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:829: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function âbucket_valuesâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:867: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function âbucket_itemsâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:907: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:911: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function âbucket_byValueâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:955: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:961: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c: In function âbucket_getstateâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:1134: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:1140: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness Dependencies/BTrees-Zope-2.9.1/BTrees/BucketTemplate.c:1151: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness In file included from Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeModuleTemplate.c:337, from Dependencies/BTrees-Zope-2.9.1/BTrees/_fsBTree.c:70: Dependencies/BTrees-Zope-2.9.1/BTrees/SetTemplate.c: In function âset_itemâ: Dependencies/BTrees-Zope-2.9.1/BTrees/SetTemplate.c:266: warning: pointer targets in passing argument 1 of âPyString_FromStringAndSizeâ differ in signedness In file included from Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeModuleTemplate.c:338, from Dependencies/BTrees-Zope-2.9.1/BTrees/_fsBTree.c:70: Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeTemplate.c: In function âBTree_getstateâ: Dependencies/BTrees-Zope-2.9.1/BTrees/BTreeTe
[Zope] files for xp
does any one have the required build for the mysql-python connection for zope on windows. I have been trying for the last 2 weeks and close to giving up, if some one has zmysql working on xp, please let meknow how to get this done. I have tried all of these links but havnt had no luck http://www.devshed.com/c/a/Zope/Zope-And-MySQL/2/ http://www.transana.org/developers/setup/MySQLPython_Win_MU.htm http://mail.python.org/pipermail/python-list/2004-December/255184.html http://www.zope.org/Members/alanpog/zmysqlda_steps please help thanks -- View this message in context: http://www.nabble.com/files-for-xp-t1315165.html#a3506041 Sent from the Zope - General forum at Nabble.com. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] best practice, CSS Stylesheets
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20 Mar 2006, at 22:26, John Huttley wrote: Hi, What is the best way of handling CSS? I've looked at ZStylesheets, but it is buggy and uses depreciated functions that will not be available in 2.10. They are just simple text files and do not need any "handling". You could just put them in a simple Zope File object, give it content type text/css, and be done with it. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEHzjjRAx5nvEhZLIRAsz1AJ9UmzAkpjHYfq96MkVFoJTJg19MhACePPa9 71huwoMNp75MkxpD2lBBNWk= =Oig9 -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] error with repozo.py
Guys, zope@zope.org is a *plain text* list, please stop posting html... Chris Martin Koekenberg wrote: Hmm, There could be something wrong. I get this: ['', '/usr/lib/python23.zip', '/usr/lib/python2.3', '/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk', '/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages', '/usr/lib/python2.3/site-packages/PIL', '/usr/lib/python2.3/site-packages/gtk-2.0'] How do I set the right path in Python ? Regards, Martin Koekenberg _ Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Bernd Dorn Verzonden: maandag 20 maart 2006 8:49 Aan: [Zope] List Mailing Onderwerp: Re: [Zope] error with repozo.py On 20.03.2006, at 07:45, Martin Koekenberg wrote: Hello, I get an error when I want to create a backup with repozo.py. Traceback (most recent call last): File "./repozo.py", line 74, in ? from ZODB.FileStorage import FileStorage ImportError: No module named ZODB.FileStorage I already searched with google for a solution. I found that it could be a problem with PYTHONPATH, but I've set this path already. are you sure, looks as if the path is not correct you have to set it to /lib/python just startup the python interpreter and type import sys; sys.path then it should print the path defined above, if not something is wrong What else can be wrong ? Regards, Martin Koekenberg ___ 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 ) -- 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] Using tal:attributes in XML with non-ASCII characters
Andrew Veitch wrote: Error Type: UnicodeDecodeError Error Value: 'ascii' codec can't decode byte 0x80 in position 0: ordinal not in range(128) If I change the input line to: Then this will work in HTML mode but will fail in XML mode. This all sounds familiar. I remember having loads of fun with MailTemplates, which work predominantly in XML mode. The rules I have from working with them are as follows: If content_type is set to text/html, then: - any unicodes should be encoded using the character set you intend to use for the final mail encoding - you are responsible for ensuring that any strings are encoded with the correct character set, which should be that used for the final mail encoding. If content_type is set to anything else: - all string-like data inserted into the Mail Template during rendering must be in the form of unicode objects. So, in your case, make sure everything you insert with any tal is a unicode object. hth, 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] best practice, CSS Stylesheets
Hi, What is the best way of handling CSS? I've looked at ZStylesheets, but it is buggy and uses depreciated functions that will not be available in 2.10. All advice welcome, --John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Newbie zopectl question
On 2006-03-20, JulianRead wrote: > I have installed zope as root as setup an instance of zope using a different > user. > > I am trying to setup zope so that it will start automatically when the > server is rebooted. > I have created a symlink in rc.d to zopectl however this doesnt seem to > work. This tries to start zope as the user root, not as that different user. I do think you want to start it as that other user. The following article may help you: http://www.debian-administration.org/articles/372 Basically, login as that user and add a crontab entry with 'crontab -e' that contains something like this: @reboot /home/someuser/zopeinstance/bin/zopectl start Then test it of course. :) -- Maurits van Rees | http://maurits.vanrees.org/ [NL] Work | http://zestsoftware.nl/ GnuPG key | http://maurits.vanrees.org/var/gpgkey.asc "Do only what only you can do." --- Edsger Wybe Dijkstra ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: zope 2.8.6 on Mac Intel
On 20.03.2006, at 20:46, manuel spuhler wrote: on osx i would suggest using darwinports anyway Tried with darwinports compiled form source (best on mac intel), and got the same error. $ ./configure --with-python=/opt/local/bin/python2.3 && make ... error: package directory 'build/lib/darwin-8/5/2-i386-2/4/zope/app/ traversing/ftests' does not exist make: *** [build] Error 1 i don't know the reason, but for me the above path is wrong, on other archs, it is a single directory for the build i think it should read: build/lib/darwin-8.5.2-i386-2.4/zope/app/ traversing/ftests somehow the dots got replaced maybe it is a zpkgsetup problem? on my old powerbook it is: lib.darwin-8.5.0-Power_Macintosh-2.4 btw: there is something wrong with the python version, you configured 2.3 but the lib directory ends with 2/4(2.4) Anybody can tell me where I could start to try to fix this? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: zope 2.8.6 on Mac Intel
on osx i would suggest using darwinports anywayTried with darwinports compiled form source (best on mac intel), and got the same error. $ ./configure --with-python=/opt/local/bin/python2.3 && make... error: package directory 'build/lib/darwin-8/5/2-i386-2/4/zope/app/traversing/ftests' does not existmake: *** [build] Error 1 Anybody can tell me where I could start to try to fix this? ___ 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] Using tal:attributes in XML with non-ASCII characters
Andrew Veitch wrote at 2006-3-20 01:53 +: > ... > >This gives: > >Error Type: UnicodeDecodeError >Error Value: 'ascii' codec can't decode byte 0x80 in position 0: >ordinal not in range(128) Sure, you are using "str.encode" in a wrong way: "str.encode('uft-8')" is equivalent to "unicode(str, getdefaultencoding()).encode('utf-8')". What encoding should your "200" use? Convert it to unicode using this encoding (and let the ZPublisher convert the unicode to "utf-8"). By the way, your exception must come from somewhere else as "chr(200)" cannot lead to a "byte 0x80". It is always worth to look at the traceback. It tells you where the exception really comes from... >... > > >Then this will work in HTML mode but will fail in XML mode. You should use Unicode in XML mode... > ... >> I could provide patches, if useful. > >I would be very interested to see you patches. Attached. --- TALDefs.py 2005-08-17 10:48:18.0 +0200 +++ /home/dieter/Z/Base/lib/python/TAL/TALDefs.py 2005-11-12 09:29:03.0 +0100 @@ -111,8 +111,15 @@ import re -_attr_re = re.compile(r"\s*([^\s]+)\s+([^\s].*)\Z", re.S) -_subst_re = re.compile(r"\s*(?:(text|structure)\s+)?(.*)\Z", re.S) +# DM 2005-11-12: support "mltext" (Markup Language text) +# as additional quote type. It corresponds to the SGML "RCDATA" +# (Replacable Character Data) which may contain entity references +# but no other markup. Correspondingly, "mltext" quotes '<' but +# leaves alone character entities. +#_attr_re = re.compile(r"\s*([^\s]+)\s+(?:(text|structure)\s+)?([^\s].*)\Z", re.S) +#_subst_re = re.compile(r"\s*(?:(text|structure)\s+)?(.*)\Z", re.S) +_attr_re = re.compile(r"\s*([^\s]+)\s+(?:(text|structure|mltext)\s+)?([^\s].*)\Z", re.S) +_subst_re = re.compile(r"\s*(?:(text|structure|mltext)\s+)?(.*)\Z", re.S) del re def parseAttributeReplacements(arg, xml): @@ -121,12 +128,12 @@ m = _attr_re.match(part) if not m: raise TALError("Bad syntax in attributes: " + `part`) -name, expr = m.group(1, 2) +name, quote_type, expr = m.group(1, 2, 3) if not xml: name = name.lower() if dict.has_key(name): raise TALError("Duplicate attribute name in attributes: " + `part`) -dict[name] = expr +dict[name] = quote_type, expr return dict def parseSubstitution(arg, position=(None, None)): --- TALGenerator.py 2005-08-17 10:48:18.0 +0200 +++ /home/dieter/Z/Base/lib/python/TAL/TALGenerator.py 2005-11-12 10:52:29.0 +0100 @@ -284,6 +284,9 @@ cexpr = self.compileExpression(expr) if key == "text": self.emit("insertText", cexpr, []) +# DM 2005-11-12: 'mltext' support (see 'TALDefs' for details) +elif key == "mltext": +self.emit("insertMLText", cexpr, []) else: assert key == "structure" self.emit("insertStructure", cexpr, {}, []) @@ -315,6 +318,9 @@ program = self.popProgram() if key == "text": self.emit("insertText", cexpr, program) +# DM 2005-11-12: 'mltext' support (see 'TALDefs' for details) +elif key == "mltext": +self.emit("insertMLText", cexpr, program) else: assert key == "structure" self.emit("insertStructure", cexpr, attrDict, program) @@ -352,8 +358,11 @@ assert action == I18N_EXPRESSION key, expr = parseSubstitution(expression) cexpr = self.compileExpression(expr) +# DM 2005-11-12: 'mltext' support (see 'TALDefs' for details) +#self.emit('i18nVariable', +# varname, program, cexpr, int(key == "structure")) self.emit('i18nVariable', - varname, program, cexpr, int(key == "structure")) + varname, program, cexpr, key or 'text') def emitTranslation(self, msgid, i18ndata): program = self.popProgram() @@ -464,13 +473,13 @@ for item in attrlist: key = item[0] if repldict.has_key(key): -expr, xlat, msgid = repldict[key] -item = item[:2] + ("replace", expr, xlat, msgid) +expr, quote_type, xlat, msgid = repldict[key] +item = item[:2] + ("replace", expr, quote_type, xlat, msgid) del repldict[key] newlist.append(item) # Add dynamic-only attributes -for key, (expr, xlat, msgid) in repldict.items(): -newlist.append((key, None, "insert", expr, xlat, msgid)) +for key, (expr, quote_type, xlat, msgid) in repldict.items(): +newlist.append((key, None, "insert", expr, quote_type, xlat, msgid)) return newlist def emitStartElement(self, name, attrlist, taldict, metaldict, i18ndict, @@ -675,17 +684,17 @@ i18nattrs = {} # Convert repldict's name-->expr mapping to a # name-->(compile
Re: [Zope] acquisition uml modelisation
thomas desvenain wrote at 2006-3-20 15:43 +0100: >do you know where i may find tools for acquisition representation in uml ? I fear, UML does not know about this type of relation (and therefore, tools will not support it). You will need to look for an UML extension mechanism and use it to represent acquisition type relationships. -- 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] newbie zopectl
On Mon, Mar 20, 2006 at 09:48:03AM -0800, JulianRead wrote: > > Hi i have set up a plone site and here at : > > http://www.myplonesite.com:8080/ploneinstance/mypage > > and i want it to look like > > http://www.myplonesite.com/mypage > > what is the best way to achieve this > > server setup is linux/apache/zope2.8.6/plone2.1.2 > > i have looked at virutalhostmonster but is it more efficient to use apache > mod_rewrite rules? You typically use both. http://zopewiki.org/ZopeAndApache -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] zopectl rc.local newbie question
Hi i am trying to get zopectl to work so that i can get my zope site to start automatically when the server reboots. I have put the following code into rc.local /home/default/inst2.isolve-unix.co.uk/zope/bin/zopectl start This doesnt work i have checked that it is definatley the right directory and rc.local seems to be working does anyone have any idea where im going wrong Thanks -- View this message in context: http://www.nabble.com/zopectl-rc.local-newbie-question-t1312938.html#a3498950 Sent from the Zope - General forum at Nabble.com. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] newbie zopectl
Hi i have set up a plone site and here at : http://www.myplonesite.com:8080/ploneinstance/mypage and i want it to look like http://www.myplonesite.com/mypage what is the best way to achieve this server setup is linux/apache/zope2.8.6/plone2.1.2 i have looked at virutalhostmonster but is it more efficient to use apache mod_rewrite rules? Please give examples as mod_rewrite leaves me confused. Thanks -- View this message in context: http://www.nabble.com/newbie-zopectl-t1312756.html#a3498347 Sent from the Zope - General forum at Nabble.com. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Newbie zopectl question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 JulianRead wrote: > Do you know if it is possible to get zopectl to run using rc.local? Yes. Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEHuGN+gerLs4ltQ4RAhAcAJ4pzdZ7KKEScqeUieEo8gmeWSwVsgCgjfqE b1BIrK8OlOtTQCrPXFyGfAs= =zKk0 -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: Newbie install from source
Hi Courtesy reply ( I did not cc zope@zope.org) Regarding posting to a Plone list you're right :-) I was so busy learing how to install on Linux from source I did not notice that I had signed up to not quite the appropriate mailing list for my question. I think I'll lurk though and soak up some of you kind folks wisdom. Thanks. Its running fine now. Regards Steve ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Finding stylesheet
On Mon, Mar 20, 2006 at 04:22:12PM +, John Poltorak wrote: > If my.css contains > > background-image: url(images/background.gif); > > how would 'images/'be resolved? (Assuming I have an 'images folder in the > current folder and its parent.) This is decided by the client. http://www.htmlhelp.com/reference/css/units.html#urls -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Newbie zopectl question
Do you know if it is possible to get zopectl to run using rc.local? -- View this message in context: http://www.nabble.com/Newbie-zopectl-question-t1311221.html#a3496682 Sent from the Zope - General forum at Nabble.com. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Finding stylesheet
On Mon, Mar 20, 2006 at 11:04:03AM -0500, Paul Winkler wrote: > On Mon, Mar 20, 2006 at 03:44:02PM +, John Poltorak wrote: > > I would like to set up a page template to use the stylesheet my.css if it > > is in the current folder, but if not to use the one in the root folder. > > > > How do I specify this? > > This is a very common and basic usage of implicit acquisition. > Something like: > > tal:attributes="href context/my.css/absolute_url" /> I did have that although it didn't work properly but I understand why now. If my.css contains background-image: url(images/background.gif); how would 'images/'be resolved? (Assuming I have an 'images folder in the current folder and its parent.) > -- > > Paul Winkler > http://www.slinkp.com -- John ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Finding stylesheet
On Mon, Mar 20, 2006 at 03:44:02PM +, John Poltorak wrote: > I would like to set up a page template to use the stylesheet my.css if it > is in the current folder, but if not to use the one in the root folder. > > How do I specify this? This is a very common and basic usage of implicit acquisition. Something like: -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: Finding stylesheet
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Poltorak wrote: > I would like to set up a page template to use the stylesheet my.css if it > is in the current folder, but if not to use the one in the root folder. > > How do I specify this? Assuming that you mean "containing" folder (rather than root), you can just acquire the object and ask for its absolute_url, e.g:: If you want the local one, or one in some "root" folder (but not any intervening ones), then you probably need to write a PythonScript which finds the stylesheet file object using whatever logic is appropriate, and return its absolute_url. You would then call that script in TAL:: Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEHtI/+gerLs4ltQ4RAhuiAJ9A7LQmFt+9u2cf6MU7TY5zRlwAHgCgrtow 5d1w6G7vKqrH2hTsqsXdGgU= =pYTJ -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: zope 2.8.6 on Mac Intel
On 20.03.2006, at 09:37, Jens Vagelpohl wrote: On 20 Mar 2006, at 07:42, Bernd Dorn wrote: $ make "/usr/local/bin/python2.3" "/Users/spuhlema/Desktop/Zope-2.8.6- final/setup.py" \ build --build-base="/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/ python-2.3" --build-lib="/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/ python-2.3/build-lib" --build-scripts="/Users/spuhlema/Desktop/Zope-2.8.6-final/build- base/python-2.3/build-scripts" --build-temp="/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/ python-2.3/build-temp" running build running build_py error: package directory 'build/lib/darwin-8/5/2-i386-2/4/zope/app/traversing/ftests' does not exist make: *** [build] Error 1 I guess Python doesn't compile equally on PowerPc and Intel. Any idea? you need zlib support compiled into python, this is only done, if the zlib header files are found at configure time do you have it? Umh, take a look at the error message. Do you see anything that looks like a zlib problem? I don't. last time i installed a zope on debian and forgot to install the zlib headers and the error was also far away from complaining about zlib, so i thought it might be this on osx i would suggest using darwinports anyway jens ___ 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] Finding stylesheet
I would like to set up a page template to use the stylesheet my.css if it is in the current folder, but if not to use the one in the root folder. How do I specify this? -- John ___ 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] acquisition uml modelisation
hello, do you know where i may find tools for acquisition representation in uml ? 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] Newbie zopectl question
JulianRead schrieb: Hi I have created a zope / plone site which i have deployed on a dedicated server using linux with fedora core 3. I have installed zope as root as setup an instance of zope using a different user. I am trying to setup zope so that it will start automatically when the server is rebooted. I have created a symlink in rc.d to zopectl however this doesnt seem to work. You need the symlink in your rc2.d or whatever your runlevel is. Usually you have some tools to build the link from rc.d to Szopectl in the desired runlevel directory When i run zopectl i get the message daemon manager not running if i enter the start command zope starts. Is there someway of getting zopectl to run at startup and for it to automattically use the start command. sys V style inits like FC4 uses, call all scripts in the runlevel which follow the S schema with the argument "start" You system documentation will tell you :-) Regards Tino ___ 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] Newbie zopectl question
Hi I have created a zope / plone site which i have deployed on a dedicated server using linux with fedora core 3. I have installed zope as root as setup an instance of zope using a different user. I am trying to setup zope so that it will start automatically when the server is rebooted. I have created a symlink in rc.d to zopectl however this doesnt seem to work. When i run zopectl i get the message daemon manager not running if i enter the start command zope starts. Is there someway of getting zopectl to run at startup and for it to automattically use the start command. Any help will be greatly appreciated -- View this message in context: http://www.nabble.com/Newbie-zopectl-question-t1311221.html#a3493768 Sent from the Zope - General forum at Nabble.com. ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: zope 2.8.6 on Mac Intel
you need zlib support compiled into python, this is only done, if thezlib header files are found at configure time do you have it?I have zlib included at configure time ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: error with repozo.py
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin Koekenberg wrote: > What else can be wrong ? Just guessing, but could it be that you have not "exported" the PYTHONPATH variable? E.g.: Without exporting: $ PYTHONPATH="/foo" $ python -c "import sys; print sys.path" ['', '/usr/lib/python24.zip', '/usr/lib/python2.4', ... '/usr/lib/python2.4/site-packages/gtk-2.0'] Setting on the command line: $ PYTHONPATH="/bar" python -c "import sys; print sys.path" ['', '/bar', '/usr/lib/python24.zip', '/usr/lib/python2.4', ... '/usr/lib/python2.4/site-packages/gtk-2.0'] Exporting: $ export PYTHONPATH $ python -c "import sys; print sys.path" ['', '/foo', '/usr/lib/python24.zip', '/usr/lib/python2.4', ... '/usr/lib/python2.4/site-packages/gtk-2.0'] Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEHqv1+gerLs4ltQ4RAgP0AKCkLty9VOODcttERF7Dqtt9201vvgCfc6JZ EDK+lMzz33NVr9p8HFc+81w= =yvH+ -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] error with repozo.py
Hmm, There could be something wrong. I get this: ['', '/usr/lib/python23.zip', '/usr/lib/python2.3', '/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk', '/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages', '/usr/lib/python2.3/site-packages/PIL', '/usr/lib/python2.3/site-packages/gtk-2.0'] How do I set the right path in Python ? Regards, Martin Koekenberg Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Bernd Dorn Verzonden: maandag 20 maart 2006 8:49 Aan: [Zope] List Mailing Onderwerp: Re: [Zope] error with repozo.py On 20.03.2006, at 07:45, Martin Koekenberg wrote: Hello, I get an error when I want to create a backup with repozo.py. Traceback (most recent call last): File "./repozo.py", line 74, in ? from ZODB.FileStorage import FileStorage ImportError: No module named ZODB.FileStorage I already searched with google for a solution. I found that it could be a problem with PYTHONPATH, but I’ve set this path already. are you sure, looks as if the path is not correct you have to set it to /lib/python just startup the python interpreter and type import sys; sys.path then it should print the path defined above, if not something is wrong What else can be wrong ? Regards, Martin Koekenberg ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: zope 2.8.6 on Mac Intel
On 20 Mar 2006, at 07:42, Bernd Dorn wrote: $ make "/usr/local/bin/python2.3" "/Users/spuhlema/Desktop/Zope-2.8.6- final/setup.py" \ build --build-base="/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/ python-2.3" --build-lib="/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/ python-2.3/build-lib" --build-scripts="/Users/spuhlema/Desktop/Zope-2.8.6-final/build- base/python-2.3/build-scripts" --build-temp="/Users/spuhlema/Desktop/Zope-2.8.6-final/build-base/ python-2.3/build-temp" running build running build_py error: package directory 'build/lib/darwin-8/5/2-i386-2/4/zope/app/traversing/ftests' does not exist make: *** [build] Error 1 I guess Python doesn't compile equally on PowerPc and Intel. Any idea? you need zlib support compiled into python, this is only done, if the zlib header files are found at configure time do you have it? Umh, take a look at the error message. Do you see anything that looks like a zlib problem? I don't. jens ___ 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 )