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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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\
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
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)[&
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
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"
"
30 matches
Mail list logo