Re: [Zope-dev] when did transaction lose the ability to be usable as a context manager?

2013-02-06 Thread Duncan Booth
Chris Withers ch...@simplistix.co.uk wrote: Hi All, I used to do this: import transaction with transaction: ... print 'hello' ... Traceback (most recent call last): File console, line 1, in module AttributeError: __exit__ When did that stop working and what should I now do

[Zope] Re: Defining a dictionary in ZPT?

2007-11-02 Thread Duncan Booth
michael nt milne [EMAIL PROTECTED] wrote: li tal:define = query here/testquery tal:repeat=result python:query(id='IT') span tal:replace=python:repeat['result'].firstnameFirst Name/spannbsp; /li but get this as a result. Thanks for the reply. Module

[Zope] Re: include?

2007-04-02 Thread Duncan Booth
Katie [EMAIL PROTECTED] wrote: We're almost finished getting the new site done completely in zope using css and mySql. We have an older portion of the old site done in php thought that we don't really want to re-write. We'd like to include it in the dtml document page that has all the common

[Zope] Re: Isn't DTML more like what other frameworks do?

2007-01-08 Thread Duncan Booth
Mark, Jonathan (Integic) [EMAIL PROTECTED] wrote: So I don't really get the benefit of using ZPT. The fact that no one outside of Zope seems to have created a ZPT-like solution suggests to me that ZPT, as I said, solves a problem which doesn't exist. There are several applications outside

[Zope] Re: Questions about demostorage

2006-12-15 Thread Duncan Booth
Chris Withers [EMAIL PROTECTED] wrote: (So in other words, the connection from the demostorage front-end to the zeo-client isn't frozen at the point when the storage is opened which might have been a plausible alternative). Urm, that would involve taking a complete copy of the db at open

[Zope] Questions about demostorage

2006-12-14 Thread Duncan Booth
Can someone explain to me what is and is not safe to do with demostorage? Say I have a zope setup involving a zeo server and clients, and I create another zope instance with demostorage wrapped around both zeoclient mounts (the catalogs are mounted separately from the rest of the content). The

[Zope-dev] Re: Installer for Windows (quick question)

2006-11-09 Thread Duncan Booth
Sidnei da Silva [EMAIL PROTECTED] wrote: Since I'm going to be building the installer for Windows I would like to quickly ask if anyone expects multiple Zope installs to live side-by-side. The existing installer atempted that but I don't believe it was very successful. I would like to know

[Zope] Re: How can I import python script into another python script?

2006-09-01 Thread Duncan Booth
Gabriel Genellina wrote: At Thursday 31/8/2006 18:11, Ferhat Ayaz wrote: I have a Script (Python) called 'functions'. I want to import this script into another Script (Python). import Include.Functions.requests says import of Include.Functions.requests is unauthorized You don't import

[Zope] Re: Packing Data.fs

2006-08-30 Thread Duncan Booth
Tres Seaver wrote: Mark Gibson wrote: I know zope makes a copy of Data.fs before packing. Is it possible to specify a location other than zope/var to place that copy? Actually, it makes a *new* file when packing, and then unlinks the old file and re-links the copy under its name after

[Zope] Re: Zope 2.9 Product Refreshing

2006-08-07 Thread Duncan Booth
Andreas Jung wrote: James Davies wrote: Another major issue I've discovered is Zope hosting. We reguarly deploy custom sites on shared zope environments, and having to restart an entire server just to update one product severely breaks our uptime guarentee. Refresh only works in

[Zope] Re: No joy on 8080.

2006-06-26 Thread Duncan Booth
Ignacio Valdes wrote: This is all on a headless server by ssh so I can't check http://localhost:8080 but http://server ip address:8080 on my browser doesn't work. Maybe there is a firewall blocking your access to port 8080 on the server. Try using wget running on the server to fetch the

[Zope-dev] Re: Re: Re: Re: favicon.ico for 2.10?

2006-05-04 Thread Duncan Booth
Chris Withers wrote: Duncan Booth wrote: What may be more significant is that simply retrieving favicon.ico into IE displays garbage. I don't know why; IE seems perfectly capable of displaying it on the address bar or favourites, but in the main browser window it displays a short curved line

[Zope-dev] Re: Re: Re: favicon.ico for 2.10?

2006-05-03 Thread Duncan Booth
Lennart Regebro wrote: Anu I have added a favicon.ico to trunk. For some reason it doesn't show up in the Bookmark list of Firefox. If this is a caching problem, or something else, I don't know yet. If anybody knows, tell me and I'll fix it, For your viewing pleasure, I attached the big Z

[Zope-dev] Re: Re: favicon.ico for 2.10?

2006-04-25 Thread Duncan Booth
Chris McDonough wrote: There's a nice little Mac freeware app named IcoMaker for creating .ico files from GIF files. .ico files are actually containers for various icon sizes and color depths and this app allows you to create an .ico file out of up to six sizes/depths. I stole the

[Zope-dev] Re: favicon.ico for 2.10?

2006-04-24 Thread Duncan Booth
Florent Guillaume wrote: kit BLAKE wrote: 2006/4/24, Jens Vagelpohl [EMAIL PROTECTED]: Yeah, that's nice. Does it work as a PNG, though? I was under the impression (and thought the spec requires) that favicons must be *.ico files. A PNG favicon will work in the Mozilla family, but not in

[Zope] Re: kupu drawers

2006-03-28 Thread Duncan Booth
Garito wrote: this.shared.xmldata.setProperty is not a function I supouse that the error is raised because the xml is incorrect but I can't see where I think this could happen if you gave the wrong content-type for your XML. If the browser doesn't realise that it is supposed to be XML

[Zope] Re: Presentations Available

2005-10-04 Thread Duncan Booth
David H wrote: I saw that in a few google hits but ... I figured that if a fair population wants to view the presentations then the files should be in a universal format - like pdf or rtf. Its an interesting question: how many people who just wish to peruse the files will feel compelled

[Zope] Re: Epoz and Tidy

2005-05-05 Thread Duncan Booth
Cyrille Bonnet wrote: Daniel Dekany wrote: BTW, anybody has found a solution for fixing HTML copy-pasted from Microsoft Word (mostly 2000/XP)? Lot of users has MS Word, and the HTML pasted from it is a CSS killer mess. I tried mxTidy but it didn't improved substantially the HTML. So how do

[Zope] Re: ZPT and attributes

2005-04-09 Thread Duncan Booth
Antonio Beamud Montero wrote: How I can create attribute names dynamically? For example, I want something like this: books ref1=http://boo; ref2=http://foo; ... Where ref1 and ref2, are created by the url list. I have done in DTML because I cannot with ZPT. The easiest way is probably to

[Zope-dev] ZEO question.

2001-03-23 Thread Duncan Booth
unted BerkeleyDB 3.2 storage. -- Duncan Booth [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Re

Re: [Zope-dev] ZEO question.

2001-03-23 Thread Duncan Booth
s" % (os.getpid())) I have posted a report on the ZEO Tracker for both these changes. -- Duncan Booth [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/list

[Zope-dev] BerkeleyStorage with BerkeleyDB 3.2

2001-03-15 Thread Duncan Booth
a copy, see http://www.zope.org/Members/Duncan/BerkeleyStorage -- Duncan Booth [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts

Re: [Zope-dev] manage_main select ... / don't work with Mozilla

2001-03-15 Thread Duncan Booth
On 15 Mar 2001, you wrote in local.zope.dev: Matt wrote: select should have a corresponding /select right? In which case no, it should not have a trailing slash. They are only needed for single tags that have no corresponding close, eg br / hr / etc. I agree but in the

Re: [Zope] Underscore Caracter

2000-09-06 Thread Duncan Booth
n+3 memory allocations where n replacements are made (1 allocation when n is 0). So I agree, replace should be faster, although given everything else that is going on, unless you do a lot of them you probably won't notice. -- Duncan Booth [EMAIL PROTEC

[Zope] Anyone using Zope on a RAQ3?

2000-08-02 Thread Duncan Booth
Has anyone tried running Zope on a Cobalt RaQ3? The reason I ask is that a UK company is now offering dedicated RaQ3's for 29 pounds/month (64Mb RAM, 8Gb disc), and I wondered if it would make a good Zope platform or not? -- Duncan Booth [EMAIL

RE: [Zope] URL quoting in python

2000-07-21 Thread Duncan Booth
in the parameter by name. e.g. dtml-call "RESPONSE.redirect(URL1+'?foo_bar='+url_quote(s=ufoobar))" -- Duncan Booth [EMAIL PROTECTED] int month(char *p){return(124864/((p[0]+p[1]-p[2]0x1f)+1)%12)["\5\x8\3" "\6\7\xb\1\x9\xa\2\0\

Re: [Zope] How to require an @ symbol in email form field??

2000-07-18 Thread Duncan Booth
n the REQUEST form: dtml-let required="[ 'name', 'email' ]" present="_.reorder(REQUEST.form.keys(), with=required)" missing="_.reorder(required, without=present)" dtml-if missing Missing fields: dtml-in missingdtml-var sequence-item /dtml-inbr dtml-else ... insert c

Re: [Zope-dev] Repeating a piece of HTML code

2000-06-02 Thread Duncan Booth
more appealing. Of course if you rename star.gif as star_gif you could try: dtml-var "start_gif.tag() * movie_rating" which has a certain neatness. -- Duncan Booth [EMAIL PROTECTED] int month(char *p){return(124864/((p[0]+p[1]-p[2]0x1f)+1)%12)[&

Re: [Zope] how do I get field names from a query

2000-05-31 Thread Duncan Booth
tem /dtml-in Try: dtml-let query="sqlListTable(table_name='personnel')" names="query.names()" dtml-in query dtml-in names dtml-let column=sequence-item dtml-var column is dtml-var "_[column]"br /dtml-let /dtml-i

Re: [Zope] Use of lambda expression in DTML

2000-05-30 Thread Duncan Booth
ternatively use something like a PythonMethod, or even a DTML method and simply write the filter loop out in full using 'for' or 'dtml- in'. -- Duncan Booth [EMAIL PROTECTED] int month(char *p){return(124864/((p[0]+p[1]-p[2]0x1f)+1)%12)["\5\x8\3" "