Re: [Zope] Squid & ESI

2006-01-25 Thread Martijn Pieters
SI development this has fallen by the wayside. I certianly haven't touched Squid 3.0/ESI since the Boston.com days, and as far as I know only one or two others in the Zope community have looked at it since. -- Martijn Pieters ___ Zope maillist - Zope@z

Re: [Zope] empty session with virtual hosting

2006-01-30 Thread Martijn Pieters
okie headers are being sent back and forth to see if Apache is handling things correctly. Or you can use a logging proxy like http://hathawaymix.org/Software/TCPWatch to see what goes on between Apache and Zope and/or between Apache and your browser to detect problems. By default the session cook

Re: [Zope] Squid & ESI

2006-01-30 Thread Martijn Pieters
squid-cache.org/bugs/show_bug.cgi?id=652 http://www.squid-cache.org/bugs/show_bug.cgi?id=656 -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - ht

Re: [Zope] Serve PHP/Perl within Zope

2006-02-02 Thread Martijn Pieters
ached for 24 hours, except for the breaking news box (cached for 1 hour) and the poll which comes from a dedicated poll server.. I'd prefer the same language at the Squid level, granted, but if simplicity enables little loss in performance so be it. -

Re: [Zope] ExtFile - wrong file extension and content_type

2006-02-08 Thread Martijn Pieters
On 2/7/06, Michael Vartanyan <[EMAIL PROTECTED]> wrote: > well. I would really like to know what does this "b/w" mean in this > context? Not black&white for sure :-) I'd guess at 'backward compatibility'. -- Martijn Pieters _

Re: [Zope] Zope 2.9 and SSL

2006-02-17 Thread Martijn Pieters
appears > to be growing steadily. The netcraft survey for February counted 21699 instances of lighttpd; Zope was counted 41656 times: http://survey.netcraft.com/Reports/200602/ The numbers are those seen by Netcraft during January. -- Martijn Pieters __

Re: [Zope] Zope 2.9 and SSL

2006-02-17 Thread Martijn Pieters
[...] $HEAD cache.boston.com/bonzai-fba/Globe_Photo/2006/02/17/1140170041_8639-1.jpg 200 OK [...] Via: 1.1 arn.xpc-mii.net (MIIxpc/4.7 UNVERIFIED_CACHE_HIT Fri, 17 Feb 2006 10:16:21 GMT) Via: 1.1 ics_server.xpc-mii.net (ICS 2.2.64.208) [...] Server: Apache/1.3.14 (Unix) [...] --

Re: [Zope] Zope scheduling problem

2006-02-17 Thread Martijn Pieters
7;s results based on the current user rights, proxy roles do not play in that decision. Use unrestrictedSearchResults instead. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encodi

Re: [Zope] Zope scheduling problem

2006-02-19 Thread Martijn Pieters
the method from unrestricted code. Unrestricted code is any python code not stored in a Python Script or a Pagetemplate object. An External Method or a code part of a Zope Product would do the trick. -- Martijn Pieters ___ Zope maillist - Zope@zope.org htt

Re: [Zope] change ATImage metadata

2006-02-22 Thread Martijn Pieters
tribute is a standard Archetypes field, and as such you can ask such fields what it's accesor and mutator are: >>> field = item.Schema().get('language') >>> field.accessor, field.mutator ('Language', 'setLanguage') So ite

Re: [Zope] Can Zope 2.9 Coexist With Zope 2.6 Using Different Ports?

2006-02-22 Thread Martijn Pieters
oes not have the rights to create the Data.fs.lock file. Without the whole traceback (always include the whole traceback!) I cannot tell you what exactly went wrong though. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/list

Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-24 Thread Martijn Pieters
On 2/23/06, Lennart Regebro <[EMAIL PROTECTED]> wrote: > Not to mention, doctests are not debuggable from WingIDE. ;-) In 2.1 you can; the following is the equivalent of pdb.set_trace(): wingdbstub.debugger.Break() :) -- Martijn Pieters ___

Re: [Zope3-Users] Re: [Zope] Debugging doctests

2006-02-24 Thread Martijn Pieters
od topic. Let's do this somewhere I can get to without having to cross the Atlantic; Pareto will be far more likely to pay for my presence that way.. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No

Re: [Zope] Zope scheduling problem

2006-02-27 Thread Martijn Pieters
restricted code. The method in question is private because it bypasses the security restrictions imposed by the regular version. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML

Re: [Zope] TypeError: unpack non-sequence. RemoteUserFolder?

2006-03-02 Thread Martijn Pieters
ly relevant). The problem appears to be in the RemoteUserFolder product there; perhaps the Product authors can assist you there. look for contact information ith the Products/RemoteUserFolder directory. -- Martijn Pieters ___ Zope maillist - Zope@zop

Re: [Zope] How to specify caching for ZSQL methods on file system

2006-03-02 Thread Martijn Pieters
lock at the top. Here is an example: title: Retrieve the per_id of a given uid connection_id: portal_cvix arguments: uid cache_time: 10 'cache_time: 10' sets the caching time to 10 seconds. -- Martijn Pieters ___ Zope maillist - Zope@zope

Re: [Zope] awstats and zope

2006-03-04 Thread Martijn Pieters
at file to recognize search engine User Agents? I am not sure how that would tie in with Zope's catalog. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! *

Re: [Zope] Re: Upgrading to Zope 2.9.1

2006-03-10 Thread Martijn Pieters
the same fix (universal line endings) will solve this too. I strongly suspect the fix will be just as easy (line 81 of FSPageTemplate.py, add a 'U' to the file opening flags). The harder bit is the tests.. -- Martijn Pieters ___ Zope maillist

Re: [Zope] Re: Upgrading to Zope 2.9.1

2006-03-10 Thread Martijn Pieters
On 3/10/06, Martijn Pieters <[EMAIL PROTECTED]> wrote: > Hmm; I'll investigate if I can reproduce this and see if the same fix > (universal line endings) will solve this too. I strongly suspect the > fix will be just as easy (line 81 of FSPageTemplate.py, add a 'U

Re: [Zope] Error: gaierror: (-2, 'Name or service not known')

2006-03-14 Thread Martijn Pieters
acquire enough UNIX sysop knowledge to fix the problem yourself. I suspect that the hostname has no DNS entry anywhere; adding it to /etc/hosts should be enough. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/

Re: [Zope] Re: Zope + Apache on Quad Debian machine

2006-03-16 Thread Martijn Pieters
e? A sure sign of someone who wears his underpants on his head." -- Maskerade Terry doesn't like multiple exclamation marks. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross post

Re: [Zope] zope and nagios

2006-03-31 Thread Martijn Pieters
ocept/ZNagios/trunk/ (viewcvs view at: http://svn.gocept.com/viewcvs/ZNagios/trunk/) It let's us also monitor database size, reference count and the error log. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listin

Re: [Zope] How to convert characters that have special meaning in HTML to HTML character entities

2006-04-06 Thread Martijn Pieters
> rendering the string in a html page. TAL escapes characters that have special meaning in HTML or XML by default, to avoid XSS attacks. You can force TAL to not do this with the 'structure' keyword, like so: Not blinking -- Martijn Pieters _

Re: [Zope] about restricting addable types in Plone

2006-05-04 Thread Martijn Pieters
nd provide your own versions of the methods in ATContentTypes.lib.contstraintypes.ConstrainTypesMixin. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail

Re: [Zope] psycopgda

2006-05-06 Thread Martijn Pieters
our Zope Products dir? The latter is the Zope integration product which is what you'll need. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related list

Re: [Zope] Re: REMOTE_USER Security Issue

2006-05-16 Thread Martijn Pieters
e Zope Collector: http://www.zope.org/Collectors/Zope You'll need to log in (create a Zope.org account if you don't yet have one), and make sure you check the 'security related' tickbox. Thanks, -- Martijn Pieters ___ Zope maillist -

Re: [Zope] debug with ipython

2006-06-06 Thread Martijn Pieters
d version is for use with python 2.4 (Zope 2.9 and up), but it should work fine with python 2.3 and Zope 2.8 as well if you rename the ipython command on the last line. For Zope 2.7 and lower, you'll need to rename both occurences of 'Zope2' with 'Zope' as well. -- Mart

Re: [Zope] Zope 3 clues for getting started

2006-07-14 Thread Martijn Pieters
d the times as Zope 3 has evolved rapidlly. -- Martijn Pieters ___ 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

Re: [Zope] (no subject)

2006-07-18 Thread Martijn Pieters
the web; it is a simple schema for simple properties. -- Martijn Pieters ___ 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/zop

Re: [Zope] Catalog aware

2006-07-20 Thread Martijn Pieters
one that convinces me. Why catalog database connectors for example? What kind of search are you performing? Have you thought about the potential problems of making all objects catalog-aware by default, like potential conflicts and side-effects? I say a big -infinity from me on the whole idea

Re: [Zope] Catalog aware

2006-07-20 Thread Martijn Pieters
in different contexts. Zope is a complex beast, and the idea of making everything catalog aware is not going to play well. >> I say a big -infinity from me on the whole idea. > > I can't understand the last sentence (my english is a kid english, sorry > again!) It means I say no

Re: [***SPAM*** Score/Req: 04.00/04.00] Re: [Zope] Catalog aware

2006-07-20 Thread Martijn Pieters
ge Templates to contain application data, you are using the framework in a way it was not designed to do (for a good reason)! If so, rethink your application, instead of trying to make the framework fit. -- Martijn Pieters ___ Zope maillist - Zope@zope.o

Re: [***SPAM*** Score/Req: 04.00/04.00] Re: [Zope] Catalog aware

2006-07-20 Thread Martijn Pieters
ould do for your friend. Sorry! -- Martijn Pieters ___ 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://ma

Re: [Zope] no accounts in root user folder?

2006-08-11 Thread Martijn Pieters
folder with a PlonePAS instance as well. -- Martijn Pieters ___ 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

Re: [Zope] cannot paste objects

2006-08-11 Thread Martijn Pieters
ookies enabled? -- Martijn Pieters ___ 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/li

Re: [Zope] Trouble with PIL and Zope 2.8

2006-08-18 Thread Martijn Pieters
e correct Python, namely the one that Zope runs with. The runzope and zopectl scripts will have the path to the correct python binary, use that binary to test your PIL setup. There are otherwise no special setup requirements for getting PIL to run with Zope. --

Re: [Zope] Re: Problems starting ZEO with zeoctl

2006-09-04 Thread Martijn Pieters
oes. The effective ZEO user should not be able to write in my etc/ dir, thank you very much! -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] Help! I Screwed Up a Source File

2006-09-05 Thread Martijn Pieters
nload 2.7.8 from Zope.org and extract that one file? -- Martijn Pieters ___ 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/zop

Re: [Zope] request.locale - do we have this in 2.9.4?

2006-09-05 Thread Martijn Pieters
bug? I'd say it's a bug. The Zope3 request has the locale attribute, but the Zope2 request implementation doesn't. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts

Re: [Zope] Re: request.locale - do we have this in 2.9.4?

2006-09-05 Thread Martijn Pieters
gration includes code that expects an IBrowserRequest. Either Zope2 should implement that correctly, or Five should not include that widget, or Five should register a widget that doesn't use request.locale. This should be at a minimum be named as a k

Re: [Zope] Need Help--urgently

2006-09-06 Thread Martijn Pieters
ist to my python script searchuparam. The external method already returs the list to your python script. Just store the result in a variable: returnedlist = contex.code(uparam) -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zo

Re: [Zope] Need Help--urgently

2006-09-06 Thread Martijn Pieters
be True. You can also call the external method directly if you encode the arguments passed to it in the query string. Just open up a python propmt, import urllib and call urllib.quote on your argument list to hand-construct a URL. Moreover, get decent books on Python and on Web programming in

Re: [Zope] Need Help--urgently

2006-09-06 Thread Martijn Pieters
ve you pointers; how to debug, and how to fill in more context to understand what is going on. Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists -

Re: [Zope] Zope hangs when database takes too long to respond

2006-09-06 Thread Martijn Pieters
omething different it won't be shown here. If there are any threads left to serve web requests, you could look at the Control Panel debug information, where you can see the currently processing requests. -- Martijn Pieters ___ Zope maillist - Zo

Re: [Zope] Dictionary in ZPT

2006-09-12 Thread Martijn Pieters
ate page? Why do you want to? Use a python script instead, or better still, use a Zope3-style view. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists

Re: [Zope] Dictionary in ZPT

2006-09-12 Thread Martijn Pieters
On 9/12/06, Andreas Jung <[EMAIL PROTECTED]> wrote: tal:define="dummy python: somedict.update({key:value})" See, I never manipulate dictionaries in TAL and forgot you had to do it that way. I gave the wrong answer in my reply. --

Re: [Zope] ZEO with Multiple Storages

2006-09-13 Thread Martijn Pieters
r all other data. Lastly, any thoughts on how we could split up our existing data.fs file? One thought I had was to attempt to import/export data. Either before or after upgrading to 2.9 (probably best after to take advantage of the more robust ZODB), export and im

Re: [Zope] Foreground, but not debug.

2006-09-17 Thread Martijn Pieters
cially when you are using your own supervisor. -- Martijn Pieters ___ 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-an

Re: [Zope] zope gets killed on startup

2006-10-05 Thread Martijn Pieters
5 uses PlonePAS, which for some reason feels the need to replace the root-level acl_users folder when you create a Plone site. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML en

Re: [Zope] zope gets killed on startup

2006-10-05 Thread Martijn Pieters
On 10/5/06, Martijn Pieters <[EMAIL PROTECTED]> wrote: Note that Plone 2.5 uses PlonePAS, which for some reason feels the need to replace the root-level acl_users folder when you create a Plone site. (and to finish that email) That means that if you had Plone 2.5 installed, then remo

Re: [Zope] zope gets killed on startup

2006-10-05 Thread Martijn Pieters
On 10/5/06, Philip Kilner <[EMAIL PROTECTED]> wrote: Is there any reason I can't zap this and revert to a standard acl_users folder? No idea, back up and find out. Let us know! -- Martijn Pieters ___ Zope maillist - Zope@zo

Re: [Zope] Apache2 Rewrite: Too much traffic OR nothing

2006-11-22 Thread Martijn Pieters
zilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" That's just someone poking for holes, the server returend a 404 (not found) so no harm done. Any server on the internet get's such junk requests. -- Martijn Pieters ___ Zope maillist - Zope@

Re: [Zope] help performance

2006-11-24 Thread Martijn Pieters
ptimization, so try them! Don't just ditch the experts here. -- Martijn Pieters ___ 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/list

Re: [Fwd: Re: [Zope] help performance]

2006-11-24 Thread Martijn Pieters
On 11/24/06, Yuri <[EMAIL PROTECTED]> wrote: 8.7971 was the time without subtransactions, 2.3 with. Ops... -.- Indeed. And if you tweak the threshold as Jonathan suggested, you could even get it lower. -- Martijn Pieters ___ Zope maillist -

Re: [Zope] Has anyone generated barcodes output within DTML?

2006-12-04 Thread Martijn Pieters
http://www.cgpp.com/bookland/ You could also hack GNU barcode into Zope (http://www.gnu.org/software/barcode/barcode.html) but that'd be a bit harder. Perhaps there is a python interface GNU barcode, though I haven't found one yet. -- Martijn Pieters _

Re: [Zope] Urgent Help Required......

2007-01-15 Thread Martijn Pieters
find DTML to be more expensive, because I make more mistakes, more easily. I prefer ZPT, and we do not have a big dev team here. Sorry, just because you prefer DTML doesn't make it any cheaper to develop with it. -- Martijn Pieters ___ Zope mai

Re: [Zope] session-timeout-minutes value in runtime Zope

2007-01-23 Thread Martijn Pieters
is var from os.environ for your own purposes; note however that I have found no mention of the ZSESSION_ variables outside of handlers.py, they appear to be otherwise unused. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mail

Re: [Zope] Zope pretends to receive and send XMLRPC data, but strace sees nothing ! (fwd)

2007-01-25 Thread Martijn Pieters
resolution. -- Martijn Pieters ___ 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/li

Re: [Zope] CookieCrumbler and __ac

2007-02-01 Thread Martijn Pieters
ing it keeps other Zope code (which may be untrusted) from snooping on that information. In other words, it's a security measure. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HT

Re: [Zope] zope, webdav, ical, vcalendar, etc.

2007-02-03 Thread Martijn Pieters
rce code of scripts and templates. Use the regular HTTP port for WebDAV access if you require templates and scripts to be rendered; Zope supports WebDAV access on the regular HTTP port out of the box. -- Martijn Pieters ___ Zope maillist - Zope@zo

Re: [Zope] documentation about the ":method"

2007-02-08 Thread Martijn Pieters
(or have them available there through acquisition or skins) Now, when a user clicks the 'foo:method' button, Zope receives a form for server/path/, and modifies the request to go to server/path/foo instead. If 'bar:method' was pressed, the request ends up at server/path/ba

Re: [Zope] documentation about the ":method"

2007-02-08 Thread Martijn Pieters
On 2/8/07, Manuel Spuhler <[EMAIL PROTECTED]> wrote: quoted from http://www.plope.com/Books/2_7Edition/ScriptingZope.stx Heh, I completely missed the fact that :method has been renamed to :action. Thanks for the correction! -- Martijn P

Re: [Zope] SecureMailHost Error

2007-02-11 Thread Martijn Pieters
tocol. Please contact Google to fix their SMTP server. -- Martijn Pieters ___ 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/listinf

Re: [Zope] Suggestion for an opensource barchart/piechart graphic package in python

2007-02-17 Thread Martijn Pieters
ice? Have a look at pychart: http://home.gna.org/pychart/. There is a How-To on using this package in Plone, it shouldn't be hard to extract from the given examples how to use pychart in your own project: http://plone.org/documentation/how-to/add-

Re: [Zope] Are ZEXP files safe?

2007-03-02 Thread Martijn Pieters
rity issues with ZEXP import? You heard correctly; pickles can contain arbitrary python classes and code and no security checks are done when importing ZEXP files. This means a user can completely control your server with a correctly crafted upload. -- Mart

Re: [Zope] Zope modules

2007-03-05 Thread Martijn Pieters
these come standard with the base product. Do we need to install a different version? Or add some modules, if so, from where? Perl scripts died a painless death a long time ago. Versions were removed in 2.8, mostly because the implementation was seriously broken. -- Mart

Re: [Zope] Calling a Variable

2007-03-08 Thread Martijn Pieters
ook up 'bar' and render it as the content of the span. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailm

Re: [Zope] Calling a Variable

2007-03-09 Thread Martijn Pieters
a bit underdocumented, but it is not a recent addition.. -- Martijn Pieters ___ 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/listinf

Re: [Zope] build a safe proxy

2007-03-16 Thread Martijn Pieters
plates engine to create the compiled expression, together with a expression context (a global namespace for the expressions to access) -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts o

Re: [Zope] How do people work with html-designers?

2007-03-16 Thread Martijn Pieters
at all. Perhaps underutilised and not as robust as first hoped, but not a myth. At Pareto the designer and templater were quite comfortable with keeping TAL intact while using graphical tools. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.z

Re: [Zope] build a safe proxy

2007-03-16 Thread Martijn Pieters
s it ? It uses the Zope security machinery to determine what access the code has. So the code in a script cannot access any attributes that the user running the code has access to through the web in the first place. -- Martijn Pieters ___ Zope mailli

Re: [Zope] context.user at ImplPython.py

2007-03-23 Thread Martijn Pieters
view template or somesuch) the problem is circumvented. -- Martijn Pieters ___ 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/li

Re: [Zope] context.user at ImplPython.py

2007-03-23 Thread Martijn Pieters
ecessities Return a callable from your traverser (so return the __call__, don't call it yourself). The publisher will call it for you after the user has been authenticated. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mai

Re: [Zope] Corrupted ZPT Locks Me Out Of Folder

2007-03-23 Thread Martijn Pieters
ror return expat.ParserCreate(encoding, ' ') In other words, reinstall expat and your ZPT page will reappear. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encod

Re: [Zope] context.user at ImplPython.py

2007-03-23 Thread Martijn Pieters
;Wrapper': return Wrapper().__of__(self) else: return getattr(self, name) This way the security policies can still look up the security context. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope

Re: [Zope] context.user at ImplPython.py

2007-03-23 Thread Martijn Pieters
rse__ will be called by the publisher, so *it* needs to implement __call__, but index_html and __str__ may also do. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding!

Re: [Zope] context.user at ImplPython.py

2007-03-23 Thread Martijn Pieters
some time to explain. I am not familiar with the contents of Zope books here, so I can't directly recommend anything here either. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML

Re: [Zope] V iewlet in rotterdam?

2007-03-23 Thread Martijn Pieters
m skin predates viewlets. -- Martijn Pieters ___ 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/m

Re: [Zope] Some __bobo_traverse__ help

2007-03-26 Thread Martijn Pieters
On 3/26/07, Dieter Maurer <[EMAIL PROTECTED]> wrote: Martijn is a Five expert and told you things that may happen when Five is heavily used. Not as much as the other one though. ;) I (Martijn Pieters) attempted to help out, Martijn Faassen is the Five expert. I do not think that your p

[Zope] Re: [Zope-Annce] Zope 2.8.9, Zope 2.9.7, Zope 2.10.3 released

2007-03-26 Thread Martijn Pieters
n in a deployment setting. This was one of those rare cases of bad luck, as the developer in question was not aware of the fact that this one special-cased method was not covered by a unit or functional test. -- Martijn Pieters ___ Zope maillist - Z

Re: [Zope] Re: Zope 2.8.9, Zope 2.9.7, Zope 2.10.3 released

2007-03-26 Thread Martijn Pieters
coratorName(methodName) That's how the postonly decorator is applied in 2.8 and in the Hotfix, and the REQUEST parameter is still required. I fixed this in the 2.8 branch as well last night. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http

Re: [Zope] getting this trying to add a plone site to zope 2.9.4...

2007-04-04 Thread Martijn Pieters
On 4/4/07, michael nt milne <[EMAIL PROTECTED]> wrote: Module Products.Five.traversable, line 115, in __bobo_traverse__ AttributeError: previous Have you tried a more recent Zope 2.9 release? -- Martijn Pieters ___ Zope maillist - Zope@zo

Re: [Zope] getting this trying to add a plone site to zope 2.9.4...

2007-04-04 Thread Martijn Pieters
which includes a newer version of Five as well. We run plenty of Plone 2.5 sites on Zope 2.9 without any problems. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML en

Re: [Zope] ImportError: No module named cPersistence when creating new instance

2007-04-04 Thread Martijn Pieters
works fine but not the new one. Any ideas? Did you compile the Zope C extensions? ./configure; make -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related li

Re: [Zope] getting this trying to add a plone site to zope 2.9.4...

2007-04-04 Thread Martijn Pieters
Plone project. I, at least, am not familiar (yet) with what the unified installer does, as I install Python, Zope and Plone from source. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross p

Re: [Zope] Changing links base address

2007-04-13 Thread Martijn Pieters
re computed at rendering time, based on the hostname of the Zope server, or what the VHM sets the servername to. So if you use Apache rewrite rules with the VirtualHostMonster, you only have to change the rewrite rule and all absolute URLs will be correct. -- Mart

Re: [Zope] Changing links base address

2007-04-13 Thread Martijn Pieters
The above code is likely to be generated in pagetemplates that are part of the Plone skin, which live on the disk (they are part of the Plone product). -- Martijn Pieters ___ Zope maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope ** No cros

Re: [Zope] Zope 2, local python script security

2007-05-24 Thread Martijn Pieters
e what your question is, you didn't state any. I am guessing that you want to know if there is any way Authenticated could get at the source anyway. The answer to that question is: no, unless users have additional permissions they cannot see the sourcecode of DTML and Python scripts. -- Martijn Piet

Re: [Zope] windos and linux

2007-05-27 Thread Martijn Pieters
reated but no gif is present.also no errors in the log Use open(dir, 'rb').read() instead, opening the file in binary mode. Windows treats textfiles and binary files differently, thus mangling your GIF file if opened in text mode. -- Martijn Pieters

Re: [Zope] Uncaptured python exception

2007-05-31 Thread Martijn Pieters
words, the user used the Stop button. Nothing to worry about. -- Martijn Pieters ___ 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/listinf

Re: [Zope] using smart folder to pick certain number of news articles to display in the home page

2007-06-30 Thread Martijn Pieters
This'll require some python coding. -- Martijn Pieters ___ 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

Re: [Zope] _p_resolveConflict not called on conflict

2007-08-07 Thread Martijn Pieters
On 8/7/07, Joachim Schmitz <[EMAIL PROTECTED]> wrote: > but _p_resolveConflict is not invoked. > > what do I do wrong ? Is ZEO involved? If so, does your ZEO instance have the Product installed (with all it's dependencies), so the ZEO server can access the resolve method?

Re: [Zope] _p_resolveConflict not called on conflict

2007-08-07 Thread Martijn Pieters
tion happens on the ZEO server side? Absolutely. Where else would it happen? -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/m

Re: [Zope] _p_resolveConflict not called on conflict

2007-08-07 Thread Martijn Pieters
On 8/7/07, Martijn Pieters <[EMAIL PROTECTED]> wrote: > On 8/7/07, Andreas Jung <[EMAIL PROTECTED]> wrote: > > > Is ZEO involved? If so, does your ZEO instance have the Product > > > installed (with all it's dependencies), so the ZEO server can access > >

Re: [Zope] _p_resolveConflict not called on conflict

2007-08-07 Thread Martijn Pieters
On 8/7/07, Joachim Schmitz <[EMAIL PROTECTED]> wrote: > Yes ZEO is involved, but where do I specify a Products-directory in > etc/zeo.conf ? You can't, AFAICT. ZEO servers only support one Products directory in their INSTANCE_HOME, it appears. --

Re: [Zope] Re: _p_resolveConflict not called on conflict

2007-08-09 Thread Martijn Pieters
now what features those storages support. It therefore doesn't know anything about conflict resolution. -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (R

Re: [Zope] Re: _p_resolveConflict not called on conflict

2007-08-09 Thread Martijn Pieters
resolution has to take place. Propagating the conflict back to the client because it *may* do conflict resolution would be less efficient still, as in most cases there is no conflict resolution available. -- Martijn Pieters ___ Zope maillist - Zop

Re: [Zope] Re: _p_resolveConflict not called on conflict

2007-08-10 Thread Martijn Pieters
ientStorage resolve conflict between the > threads of that client, not about propagating conflicts between clients, > that *would* be nuts ;-) But it's the only option the ClientStorage has, as it has no clue about conflicts. Only the ZEO server holds enough context for that, AFAICT.

Re: [Zope] What If It Doesn't Have a Key?

2007-08-13 Thread Martijn Pieters
7; in your python expression ("python:not request.has_key") or use the not: tales modifier: -- Martijn Pieters ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (

Re: [Zope] cannot access POST content in Zope

2007-08-17 Thread Martijn Pieters
he format in which the SMS gateway contacts the Zope server, though. A properly encoded POST request (multipart/form-data) would be much preferable and easier to deal with than patching Zope ;). -- Martijn Pieters ___ Zope maillist - Zope@zope.org htt

<    1   2   3   4   >