Hi all,
Say I've got a form with this in it
number 1
number 2
number 3
When this is put into an SQL database, the field 'options' is this (string)
['1', '2', '3'] or ['2', '3'] etc.
When I get the data back from the database, 'options' comes back as a
string, and ... gives errors (basica
On Thu, 9 Nov 2000, The Doctor What wrote:
> I'm curious, you posted a message about SiteAccess. I have the same
> problem, with Debian (Zope 2.2.2 and I've tried SiteAccess 2.0.0b3
> and b4).
for some reason, the debian SiteAccess package didn't contains some
files of the original SiteAccess t
Hi zopers,
Is there a syntax to login a user in
python?
i use a python method to add a user to
the
acl_user folder. When this is done I want to log
in
the new user directly.
Is that possible?
TIA
Philipp Dunkel
Shane Hathaway wrote:
>
> Here's my guess: you have a complex XML document. As you explore the
> document, Zope is setting a cookie that reflects the list of branches
> you have opened. After opening a large number of branches, you reach
> the limit on the size of a cookie (somewhere in the ran
Tony McDonald wrote:
>
> When this is put into an SQL database, the field 'options' is this (string)
>
> ['1', '2', '3'] or ['2', '3'] etc.
So you're storing the sequence as a string of the type shown above...
...ow ;-)
Might be best to change your SQL Schema so your store one row per
option
For those who care: I have created a bulk mailing How-To at
http://www.zope.org/Members/shh/BulkMailHack/
Cheers,
Stefan
--
Things work better when plugged in
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**
don't know about inside zope, but in plain python you could just do:
new_options = list(options)
perhaps an external method would cut it:
return list(inputstring)
--
Geir Bækholt
web-developer/designer
[EMAIL PROTECTED]
http://www.funcom.com
on Friday, November 10, 2000 Tony McDonald wrot
On Fri, 10 Nov 2000, Bak @ kedai wrote:
> also, will iterating through catalog index faster than iterating through
> ..say.. objectItems('meta-type')?
Much faster. Much, much faster. I tried an objectValues() on 2000 items
(in 3 different folder-type objects) and did various calculations on e
tone,
How about (untested):
where 'dboptions' is the string pulled from the DB, and 'options' is the
list needed.
This would then give you take the string "['1','2','3']" and turn it into
the list [1,2,3].
hth
Phil
- Original Message -
From: "Tony McDonald" <[EMAIL PROTECTED]>
On 10 Nov 2000 [EMAIL PROTECTED] wrote:
> But I'm unable to set the Title property of a File object.
Is it just the title property? All the others you can fiddle around with?
Try manage_changeProperties() instead. I know (from
lib/python/OFS/Image.py) that the File object has its own
manage_
On 10/11/00 10:52 am, "Phil Harris" <[EMAIL PROTECTED]> wrote:
> tone,
>
> How about (untested):
>
> where 'dboptions' is the string pulled from the DB, and 'options' is the
> list needed.
>
>
>
>
>
>
> This would then give you take the string "['1','2','3']" and turn it into
> the list [
On 10/11/00 10:45 am, "Geir Bækholt" <[EMAIL PROTECTED]> wrote:
>
> don't know about inside zope, but in plain python you could just do:
>
> new_options = list(options)
>
Yup - trying to do it all in DTML though...
> perhaps an external method would cut it:
>
> return list(inputstring)
>
T
These aren't really hosting related so I'm moving this to the
[EMAIL PROTECTED] list...
Thiebaut CHAMPENIER wrote:
>
> The official home page for this module is
> http://starship.python.net/~lemburg/mxDateTime.html (not responding rigth
> now)
IIRC, starship is down 'cos the Python team are mov
Hi all
I am strugging with accessing acl_users
from DTML, and maybe someone here can
tell me what I'm doing wrong.
I am trying to make a page where users
can change their own passwords.
I have a DTML document with "Manager"
proxy role. It is a form that lets the user
enter "password" and "conf
On Fri, 10 Nov 2000, Chris Withers wrote:
> mxDateTime is _not_ the DateTime in Zope. If only it was
It's voting season, so I vote +10 for this one.
bye,
Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Fac de Medecine de Nicehttp://wwwmed.unice.fr
Tel: (+33) 4 93
Chris McDonough wrote:
>
> I'm going to take a guess. It would appear AFAICT that the ZDiscussions
> product installed an object which it hung off the root object (the
> application object) when it was first imported.
Don't rememebr seeing anything like this in ZDiscussions when I was
looking
You will still see random key errors until Chris Petrilli puts his ZCatalog
fixes into the 2.2 branch (hopefully 2.2.3).
- Original Message -
From: "Bak @ kedai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 09, 2000 11:56 PM
Subject: [Zope] ZCatalog and random key
> Maybe it's a Zope-level rather than ZODB level problem? Maybe some of
> the ZClass machinery or product registration machinery is screwing
> things up?
This is possible. Maybe even likely.
> Given that people have reported this from more than one product now, I'd
> be inclined to think it's n
Chris McDonough wrote:
>
> > Given that people have reported this from more than one product now, I'd
> > be inclined to think it's not random bits of bad code in products. Maybe
> > there's a method/pattern which used to be okay/recommended which is now
> > causing problems?
>
> Some of the pro
On Fri, 10 Nov 2000, Chris Withers wrote:
> Chris McDonough wrote:
> >
> > I'm going to take a guess. It would appear AFAICT that the ZDiscussions
> > product installed an object which it hung off the root object (the
> > application object) when it was first imported.
>
> Don't rememebr see
> FWIW, I can also report this problem with ZDiscussions. In my case it
> stemmed from not properly deleting the ZDiscussion product before moving
> my Data.fs from 2.1.6 to 2.2.1 (I think). The symptom then was beeing
> unable to create ZSQL Methods (!) because of a missing
> ../Products/ZDBase/Z
Chris Withers wrote:
>
> Shane Hathaway wrote:
> >
> > Here's my guess: you have a complex XML document. As you explore the
> > document, Zope is setting a cookie that reflects the list of branches
> > you have opened. After opening a large number of branches, you reach
> > the limit on the siz
Hi Zopers,
I have a processing script that takes emails and puts them into a table.
I bring up a table for confirmation and then submit the whole thing by a
iterative item:records zsql method.
My problem is that the table requires a unique primary key and quite
regularly there duplicates. So ofc
I checked my website www.goeldi.com with a SuSE Linux 7 client (Netscape)
and discovered, that not all DTML is done right.
My index_html file has:
Welcome to our website.
The header and footer are displayed correct. The welcome text of the
index_html file too. But the dtml-var actual is
Chris McDonough wrote:
>
> > FWIW, I can also report this problem with ZDiscussions. In my case it
> > stemmed from not properly deleting the ZDiscussion product before moving
> > my Data.fs from 2.1.6 to 2.2.1 (I think). The symptom then was beeing
> > unable to create ZSQL Methods (!) because o
On Fri, 10 Nov 2000, Chris McDonough wrote:
> > FWIW, I can also report this problem with ZDiscussions. In my case it
> > stemmed from not properly deleting the ZDiscussion product before moving
> > my Data.fs from 2.1.6 to 2.2.1 (I think). The symptom then was beeing
> > unable to create ZSQL Me
Shane Hathaway wrote:
>
> The answer to these questions and more can be found at dev.zope.org.
> The fishbowl keeps better track of projects than any human.
The tempation to say "and the fishbowl confuses more humans than any
project can keep track of" was to great ;-)
It's not actually true, I
> > The answer to these questions and more can be found at dev.zope.org.
> > The fishbowl keeps better track of projects than any human.
>
> The tempation to say "and the fishbowl confuses more humans than any
> project can keep track of" was to great ;-)
>
> It's not actually true, I guess, exc
Hello All,
I do read HOW-TO's, User-Guides, etc., but I think DTML
must be made simpler, or better documentation, or more examples.
As an example, within an loop:
1. You can print the values of sequence-items with:
(index=,
number=,
item=)
2. To test for equality, this does no
My take is that it's a client issue.
Since you explicity mention that your using a Linux client, I'd assume
you've tried a windows client? If so was it Ie/Netscape/Opera etc.
IE and Netscape in particular play by their own rules and render things
differently. Maybe your html is causing one of
I'm create a CSV file that I would like browsers to get the "save as"
dialog when they select it.
I'm using RESPONSE.write() to write out the CSV file, and I set the
Content-Type before calling RESPONSE.write
Netscape seems to work ok, it pops up a save box for "text/csv" and
"application/vn
Hi Jason,
I've been working with Flash some lately as well.. with an eye
toward useful vector graphics for Zope. There is a library called ming
(http://www.opaque.net/ming) with a (SWIG'ed) python extension that
I've been slowing working through, adding wrapping fuctions and
getting to the po
Sorry, in fact this was a 'cache-problem'. I always have to hit the 'reload'
button to get the right content. In Windows the old content was shown, in
Linux the actual (because I did not browse before on this page).
In the management screens too I always must hit reload after a change of the
c
Hello...
Okay, I'm still staring up at the ZPatterns learning cliff as I write
this so forgive my ignorance.
I'm looking at ZPatterns WRT to 'dynamically generated dataskins'.
You what? Well, okay, I'll try and explain...
Firstly, I'm assuming that DataSkins (or their subclasses?) are
first-cl
> I'm create a CSV file that I would like browsers to get the "save as"
> dialog when they select it.
> I'm using RESPONSE.write() to write out the CSV file, and I set the
> Content-Type before calling RESPONSE.write
> Netscape seems to work ok, it pops up a save box for "text/csv" and
> "appli
>
> I have a processing script that takes emails and puts them into a table.
> I bring up a table for confirmation and then submit the whole thing by a
> iterative item:records zsql method.
>
> My problem is that the table requires a unique primary key and quite
> regularly there duplicates. So of
Thanks for the informative thread. FWIW, I see this problem too. It's
preventing me from importing various PTK & Membership .zexp's.
-Simon
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML
It's a give-and-take I think.
I had the same confusion as you have right now, but after a while you learn
this syntax pretty well.
This is the same as with all syntax, and as soon as you have learned the
basics the rest is easy and from then on a matter of learning how to use
extensive functions a
"Brad Clements" <[EMAIL PROTECTED]> writes:
> I'm create a CSV file that I would like browsers to get the "save as"
> dialog when they select it.
>
> I'm using RESPONSE.write() to write out the CSV file, and I set the
> Content-Type before calling RESPONSE.write
>
>
> Netscape seems to work
Irene Barg <[EMAIL PROTECTED]> writes:
> 1. You can print the values of sequence-items with:
>
> (index=,
> number=,
> item=)
>
> 2. To test for equality, this does not:
>
>
>( Records found)
>
>
> 3. While this does work:
>
>( Records found)
>
* peter bengtson ([EMAIL PROTECTED]) [001110 10:40]:
> It's a give-and-take I think.
> I had the same confusion as you have right now, but after a while you learn
> this syntax pretty well.
> This is the same as with all syntax, and as soon as you have learned the
> basics the rest is easy and fro
Thanks for that... Although Im not terribly sure what the magic behind the
sequence-start is, but it works very well.
Cheers,
--
Paz
Oratrix Development BV
http://www.oratrix.com
GRiNS SMIL Editor
-
Rik Hoekstra wrote:
> >
> > I have a processing script that takes emails and puts them into a
> It might be that fixing one or both of the above would reduce the DTML
> pain factor quite a bit. Certainly, it's time to do whatever it takes
> to banish these "-"-named variables, IMHO.
Agreed. But DC always raises objections when this is brought up.
_
Hi all,
Is there a NT guru in the house :-)
Zope 222
Sometimes Zserver goes Zombie, I login on the machine and I see a
DrWatson Window. I close DrWatson window and the process automagically
restarts, and everything ok.
Whenever this happens two logs are written in EventLogger:
-one is a Warning
>From inside what object should I inherit from to get a history option for
a zclass or what method would I need to write. I have looked at lots of
examples of zclasses and so far none of them have a history tab.
I am working with the STX_Document type and made a new zclass based on
that which in
I know this sounds silly, but try making the url end with .csv
I wrote a perl cgi script some time ago that spit out a csv file. When it
ended with .csv, IE seemed to ignore the server's Content-type: text/html
header.
http://finance.yahoo.com/q?s=WCG&d=v1
Look, my stock is falling! Actually, i
> It might be that fixing one or both of the above would reduce the DTML
> pain factor quite a bit. Certainly, it's time to do whatever it takes
> to banish these "-"-named variables, IMHO.
I agree, changing the "-" to "_" would remove a whole ton of posts on this
list and mean I could chop a w
we'll be back after these messages.
~ethan
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://li
Hi.
We've got Zope 2.2.2 installed on a Linux box. We want to be able to use
the full-up python that's on the box instead of the python interpreter
that comes with Zope for playing with External Methods.
Is there any way to circumvent Zope's python in this way?
If not, what's the easiest way to
> I know this sounds silly, but try making the url end with .csv
> I wrote a perl cgi script some time ago that spit out a csv file. When it
> ended with .csv, IE seemed to ignore the server's Content-type: text/html
> header.
> http://finance.yahoo.com/q?s=WCG&d=v1
> Look, my stock is falling!
From: Andy McKay
>> It might be that fixing one or both of the above would reduce the DTML
>> pain factor quite a bit. Certainly, it's time to do whatever it takes
>> to banish these "-"-named variables, IMHO.
>I agree, changing the "-" to "_" would remove a whole ton of posts on this
>list and
I'm trying to compare two page titles, using this code:
&dtml-my_title; : &dtml-get_page_title
Now I can see on the page that my_title and get_page_title are the same. I have also
tried comparing _.str(my_title) and _.str(get_page_title) just to make sure I was
comparing str
On Fri, 10 Nov 2000, Farrell, Troy wrote:
> I know this sounds silly, but try making the url end with .csv
> I wrote a perl cgi script some time ago that spit out a csv file. When it
> ended with .csv, IE seemed to ignore the server's Content-type: text/html
> header.
Not silly! I have also see
On Fri, 10 Nov 2000, Gary Perez wrote:
> We've got Zope 2.2.2 installed on a Linux box. We want to be able to use
> the full-up python that's on the box instead of the python interpreter
> that comes with Zope for playing with External Methods.
>
> Is there any way to circumvent Zope's python in
I telneted into the link I gave below and here is the RESPONSE:
HTTP/1.0 200 OK
Date: Fri, 10 Nov 2000 19:26:52 GMT
Cache-Control: private
Connection: close
Content-Type: application/octet-stream
Set-Cookie: B=48be9l0t0oivt&b=2; expires=Thu, 15 Apr 2010 20:00:00 GMT;
path=/;
domain=.yahoo.com
"
Here's some DTML I use to generate a CSV file on the fly using data returned
from a query of a MySQL database:
FirstName,MiddleName,LastName,Address,City,State,Zip,Phone,Fax,Email,URL,Bir
thday
,,,
Notice that formatting is kinda ugly. That's so that I don't get any
unwanted carriag
[Max M.]
| For once I will send a "me too" to the list. "sequence-item" is a simple and
| plain design error. Decapricate it and and let us use "sequence_item" etc.
| together with the other for a while and then drop the old form.
I'd like to join this mob. ;)
It's painful and ugly to use "_['
Hi,
If I create a ZClass that inherits another ZClass, do I also inherit the
latter's properties/propertysheet? From what I've read so far, I thought
the answer was yes but I can't seem to figure out how to *get* at them.
I created a ZClass called "Foo" that inherits a ZClass named "Meta". Meta
> Thanks for that... Although Im not terribly sure what the magic behind the
> sequence-start is, but it works very well.
>
A short explanation: sql queries return a result object (so does ZCatalog
btw), which you can't address directly in DTML (or at least I wouldn't know
how ;-) If it the re
Hello guys I' have here a pyton file that allows you to import your
bookmarks from IE.
The following prob is that it works on windows98 zope 2.2.2 and not on a
unix system.
The file temp.txt stays empty and you get the message 'unable to export
favourites'
anyone any idea?
def GetBookmark(s
First Simon, thanks for your message. Yours is one of the most articulate
explanations I've seen on this topic.
Simon Michael [EMAIL PROTECTED] writes:
> Irene Barg <[EMAIL PROTECTED]> writes:
>
[examples of DMTL confusion...]
>
> It is confusing. There are two systems of syntax in use here - D
Hi, Aaron
Yes.
If your parent ZClass is constructed properly, you should be able to add
the parent class's management tabs by setting a "view". On the "Views"
tab, look in the Method list for
propertysheets/[ParentClassPropertySheetName]/manage. The properties on
that sheet are accessible just
Irene says:
> I get so frustrated with DTML, I want to scream.
> Please don't tell me to buy the Zope book,
> DTML should be more intuitive.
> DTML maybe the heart of Zope,
> but it's also it's achilles heel.
You're right about the confusion, frustration, nor are you alone.
Still, DTML is
On Fri, Nov 10, 2000 at 10:28:44AM +, Chris Withers wrote:
>
> Oh yeah, while I'm here, how's the HiperDOM project getting on? That
> stuff would be raally useful for a project here...
HiperDom is usable right now; we've been quite quiet because
we're working on documentation and unit te
Only seen a couple of posts on this and the suggested fixes did NOT work.
My ZClass was working fine until I added a new string type property and now
my date type property seems broken. At least broken when I attempt creating
an instance via my custom add form. If I add an instance via the manage
"Philipp Dunkel" <[EMAIL PROTECTED]> writes:
> Hello guys I' have here a pyton file that allows you to import your
> bookmarks from IE.
> The following prob is that it works on windows98 zope 2.2.2 and not on a
> unix system.
> The file temp.txt stays empty and you get the message 'unable to exp
Thanks!
I have a new question that may (?) be the same old one in a different
form:
The idea is to have two ZClasses, say Foo and Bar. Bar is a nested class
of Foo. The Foo object should be able create n instances of the Bar
objects and the Bar object should also be able to create n instances o
Charlie Wilkinson <[EMAIL PROTECTED]> writes:
> ...or "the python world with some Zope limitations placed on it."
...
> There's a third world of course, HTML. Most of us probably have that
True, true. Actually this sounds like a good structure for a overview
doc:
"Welcome to Zope.. in which we
Howdy Folks,
I'm looking for man pages on these dtml functions?
I'm finding it terribly difficult and frustration to figure out how to
properly program in dtml since I can't do a man on a funtion
(ie:man objectValues) and read about what parameters the function is
expection from me.
I'd like
[EMAIL PROTECTED] wrote:
>
> Howdy Folks,
>
> I'm looking for man pages on these dtml functions?
>
> I'm finding it terribly difficult and frustration to figure out how to
> properly program in dtml since I can't do a man on a funtion
> (ie:man objectValues) and read about what parameters the f
John,
Have you tried http://zdp.zope.org , in particular the Zope Quick Reference.
Every Zope user/developer should use it as their bible.
hth
Phil
[EMAIL PROTECTED]
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 11, 2000 12:11 AM
Subje
Well, I tried the source hacking approach and seem to have found
success with relatively little pain.
In ZServer/medusa/http_server.py, the "log" method of the class
"http_request" can be modified to report the request hostname which
is readily available via the get_header method in the same clas
[me]
| But I'm unable to set the Title property of a File object.
[Erik]
| Is it just the title property? All the others you can fiddle around
| with? Try manage_changeProperties() instead. I know (from
| lib/python/OFS/Image.py) that the File object has its own
| manage_edit() method, you
73 matches
Mail list logo