Please see
http://dev.zope.org/Wikis/DevSite/Proposals/UnitTestingFramework for a
propsal for inclusion of a unit testing framework within Zope. Comments
appreciated.
Chris McDonough
Digital Creations
Publishers of Zope - http://www.zope.org
___
Message: 2
From: Chris McDonough [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
Subject: [Zope-dev] unit testing framework proposal
Date: Tue, 15 Aug 2000 14:10:14 -0400
Please see
http://dev.zope.org/Wikis/DevSite/Proposals/UnitTestingFramework for a
propsal for
On 10 Aug 2000 08:10:01 -0500, Jim Fulton wrote:
Michel Pelletier wrote:
Jim Fulton wrote:
Michel Pelletier wrote:
Also, ZClient
is much faster i've found, probably due to the marshalling/unmarshalling
necessary for xml-rpc.
That's interesting..Hm. ZClient has to marshal. I
I am a Zope Newbie, and have been creating a company Intranet using
Zope, and have stumbled across a problem that has me absolutely stumped!
I have created a basic Web Interface using the Yihaw Product, and in
this, I have added News Items. To search this, I use ZCatalog, which
works quite
Hi all,
I already wrote it to DC but got no response, so I will try to get some
feedback here.
At the moment DC uses the north american way of expressing dates and
assigns them in this form to the names of the Hotfixes. I propose another
naming scheme and will explain the reasons below.
The
On Tue, Aug 15, 2000 at 10:18:24AM +0200, Frank Tegtmeyer wrote:
Hi all,
The current format is Hotfix_08_09_2000, my proposed format is
Hotfix_2000-08-09.
This is the ISO 8601 format (abbreviated form).
totally agree.
american style dates are frustrating in many ways.
whereever it can
Wouldn't that reduce system security?
I am currently looking into implementing a login form to replace the
standard BASIC authentication.
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
"R. David Murray" wrote:
On Mon, 14 Aug 2000, Jonothan Farr wrote:
Well in Python a list is mutable and a tuple is not.
Right, but he's asking why dtml-in treats tuples in a special way,
and exactly what that behavior is.
That's right :-)
..and in particular why it's so weird. It seems
Meeting Maker Webmaster writes:
I am currently looking into implementing a login form to replace the
standard BASIC authentication.
Have a look at GUF or the new LoginManager.
They do something similar to what you want.
Either, you can use them directly, or learn how they work
and realize
Tom Deprez writes:
Hi,
I get a strange error here. Suddenly the connection to my interbase db
doens't works anymore. I get the following message :
File /usr/local/zope/lib/python/Products/gvibDA/db.py, line 178, in _abort
File gvib/gvib.py, line 466, in rollback
Error: -
Gerard Metrailler Jr. writes:
Hello,
I am trying to get the following more generic.
dtml-var "content.whos_who.gmetrail.real_name"
In that case, content and whos_who are folder, gmetrail is a ZClass I
created which derivates from Image and real_name is a property of that
Andrew Kenneth Milton writes:
+---[ Lyno Sullivan, Candidate ]--
| Greetings,
|
| My name is Lyno Sullivan and I am the endorsed Independence Party (see
[ snip ]
And you are now Lyno Sullivan, Spammer and in violation of your own laws.
I would not be
Marcin Kasperski writes:
I decided to subclass DTML Document and (using ZClass) create my own
document class
1) How can I set standard DTML Document properties (title!) from my
constructor? I created constructor form and constructor method, I
succesfully prompt for and set all
Skip Montanaro writes:
I'm trying to publish my own module with ZServer (from Zope 2.2.0). I get
the following traceback:
from Persistence import Persistent
ImportError: cannot import name Persistent
When I look at lib/python/Persistence.py, all I see is a
cuiod-tec Jens Gelhaar writes:
I need a better way to render a DTMLDocument and store the result in
variable than
dtml-let variable="_['documentname']"
but I do not like the style, it looks clumsy. Is there an another way? I
would think something like documentname(...), but the
Stephan Goeldi wrote:
Wouldn't that reduce system security?
I think he mean cookie-based authentication, as found on zope.org.
I am currently looking into implementing a login form to replace the
standard BASIC authentication.
Gérard,
Take a look at things like LoginManager and GUF which
Bill Welch writes:
I'm having trouble with nested dtml-in. The outer ZSQL returns the
coordinates of a zip code as zlat and zlong. The inner ZSQL takes
zlat and zlong as well as Range and Otype as arguments.
When I run it I get:
Error Type: Bad Request
Error Value: ['zlat',
y+---[ Dieter Maurer ]--
| Andrew Kenneth Milton writes:
| +---[ Lyno Sullivan, Candidate ]--
| | Greetings,
| |
| | My name is Lyno Sullivan and I am the endorsed Independence Party (see
|
| [ snip ]
|
| And you are now Lyno
On which URL is the Administrator Guide for Unix?
-goe-
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
___
Zope maillist - [EMAIL PROTECTED]
Hi all
I've run into something baffling regarding authentication.
For debugging purposes, my standard_html_header tells me:
(I'm emdtml-var "AUTHENTICATED_USER.getUserName()"/em and I have
emdtml-var "AUTHENTICATED_USER.getRoles()"/em role(s).)
When I visit /docs, it tells me:
(I'm
Hello! I created and logged in to a version object on my Zope-Site to do
some extensive remodelling. When I tried to commit the changes, Zope
responded with the following error:
Error Type: KeyError
Error Value: %}
[...]
Traceback (innermost last):
File
Hi,
I have a list of string.strip'ped strings which I'd like to render using
structured text.
I'm currently trying:
stx = str(StructuredText.html_with_references(join(storedLines,' \n'),
level=3))
but that isn't working :(
The text in the form submission is:
"""
sdfsdf
- sdfsdf
- sdfsdf
Chris Withers wrote:
"R. David Murray" wrote:
On Mon, 14 Aug 2000, Jonothan Farr wrote:
Well in Python a list is mutable and a tuple is not.
Right, but he's asking why dtml-in treats tuples in a special way,
and exactly what that behavior is.
That's right :-)
..and in
Totally agree. In fact I think it is so logically that the question should
be:
Can anyone think of an argument against it ?
(Else then: I am an arrogant American, I like it and f**k the rest of the
world).
Gijs Reulen
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL
Stephan Goeldi wrote:
Wouldn't that reduce system security?
I think he mean cookie-based authentication, as found on zope.org.
I am currently looking into implementing a login form to replace the
standard BASIC authentication.
Gérard,
Take a look at things like
Shane Hathaway wrote:
Looking at the code, it appears that if you pass a list of two-element
tuples, dtml-in will sort by the first element of each pair and render
the second element.
Unluckilly, that's exactly what I was passing it. But not the result I
was looking for :S
If, on the
albert boulanger wrote:
DIGEST seems good in that it is encrypted and uses the
Challange/Response like BASIC for every HTTP transaction -- matched well
with the stateless nature of HTTP.
AFAIK, no browsers (maybe Mozilla, but that has the stability of a house
of cards ;-) support Digest adn
All,
PHPlib (http://phplib.netuse.de) has a piece of javascript that creates MD5
hashes from the entries in a form:
so you would never have to pass passwords in clear text, as long as the hash
agrees with the one created server side, login is successful.
the PHPlib docs describe it better
Peter Hernberg wrote:
Here's the method that calls that method:
dtml-var "get_storys"
Why the quotes?
try dtml-var get_storys instead
cheers,
Chris
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**
...I'm betting on the latter :)
The problem in a nutshell is that a dtml method seems to be returning itself
(that is, the dtml source of the method), rather than what it ought to be
returning. I have two classes, a "Topic" class, derived from ObjectMananger, and
a "Story" class. The Topics
Hi all,
I have an external method that uploads RTF files(and only RTF files)
into a unix directory. It works fine, except it doesn't seem to
release the memory it uses up in uploading the file.
The method is;
def process_file(self, file, location, REQUEST):
if file.read(1) == '':
Yellow ppl,
I inserted my local machine IP address in DNS_IP section of Z2.py as I used
to in version 2.1.6 (now running 2.2.1b1). This used to work for me and
instead of numbers I would get resolved names in the Z2.log.
Since I upgraded to 2.2.0 and now 2.2.1b1 I only get numbers. DNS_IP
On Tue, 15 Aug 2000, Jean Jordaan wrote:
(this is from ccDocClass_add). When I arrive I *still* see:
(I'm Anonymous User and I have Anonymous role(s).)
Now I edit the URL manually and visit /docs/manage, which
works *without* prompting me for authentication. I edit the
URL back to
I already wrote it to DC but got no response, so I will try
to get some feedback here.
Who did you send it to? I don't recall seeing it...
At the moment DC uses the north american way of expressing dates and
assigns them in this form to the names of the Hotfixes. I
propose another
Is it possible to look up other SQL record values while iterating through a
DTML-IN?
Sample Data returned by SQL Method:
ID, ORDER
23, 1
25, 3
34, 6
39, 19
12, 23
Using a DTML IN I need to get the following during a single pass through
the SqlMethod:
HEADER ID ORDER PREV NEXT
PASS 1
Chris Withers wrote:
Shane Hathaway wrote:
Looking at the code, it appears that if you pass a list of two-element
tuples, dtml-in will sort by the first element of each pair and render
the second element.
Unluckilly, that's exactly what I was passing it. But not the result I
was
Shane Hathaway wrote:
snip tuple confusion
I don't know of any place. It ought to be in the DTML reference.
I guess I'll hope and wait for the Zope Book :-)
cheers,
Chris
___
Zope maillist - [EMAIL PROTECTED]
Hi RDM
My bet is that this is a browser caching issue.
Mine too. But how does everyone else manage authentication?
--
Jean Jordaan --technical writer--
Mosaic Sofware --Zope 2.16 on W2K
___
Zope maillist - [EMAIL PROTECTED]
I have a product that has three CatalogAware Zclasses. They
are indexed by the catalog correctly, but when I look at the
catalog's status tab, the number of objects for each index are
identical, even though the ZClasses themselves don't all have the same
properties.
Intuitively, this seems
Always bear in mind that anything inside double quotes gets executed as
python.
Therefor, the followign lines are not doing what you intend:
Peter Hernberg wrote:
dtml-if "sequence-index (numStories - 1)"
dtml-if "sequence-index == 0"
try these instead:
dtml-if
Dear Zopistas,
I plan to write another book about Zope: "Building Dynamic WebSites
with Zope".
The book idea:
Realize a demanding dynamic WebSite with Zope.
Describe everything that is necessary for this purpose.
This will contain:
Concepts: HTTP, HTML, Zope, Databases, JavaScript, ...
--- Chris Withers [EMAIL PROTECTED] wrote:
Peter Hernberg wrote:
Here's the method that calls that method:
dtml-var "get_storys"
Why the quotes?
try dtml-var get_storys instead
But then I get the following weird error:
Traceback (innermost last):
File
This sounds like a good idea, IMHO. The Zope Book doesn't go into much
detail about technologies outside Zope. It sounds like your book would,
and this would be a good thing.
-Original Message-
From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 15, 2000 10:45 AM
Hi all,
I'm having a nightmare here.
I have a Zope 2.2 (src, solaris) installation that I built from
scratch. Then, because *it would not* import an exported folder from
a 2.1.6 installation I had to use the Data.fs from the 2.1.6
installation and strip out everything other than the folder I
Peter Arvidsson writes:
Does anyone know a way to get the file to show the new pdf-file when I
want to view it?
You can use an "Expires" header to control how long a browser
might cache a page.
Dieter
___
Zope maillist - [EMAIL PROTECTED]
There is probably a simple solution that I'm overlooking here
I have a folder (Parts) that contains dtml documents that are snippets of code. I want
to include some of them which I have listed in a variable (select).
So I use code like this:
dtml-with parts
dtml-in select
dtml-var
I'm having trouble configuring ProxyPass on my ISP's server. I tried to
follow the instructions in the appropriate HOW-TO's without a success. I
think they all assume that the user would have root access. I don't. I have
built ZOPE in my user directory.
Anyway ProxyPass takes two arguments, a
Great, idea! Lets face it this is what the majority of users will be using
Zope for. IHMO you cannot have too many books on Zope. One thing I would
like to see is comparisons of how you would do something in other systems...
for example I used to start thinking when I used Perl or ASP I used to
On Tue, 15 Aug 2000, Joshua Brauer wrote:
I have a folder (Parts) that contains dtml documents that are snippets of code. I
want to include some of them which I have listed in a variable (select).
So I use code like this:
dtml-with parts
dtml-in select
dtml-var
I want to use redirect to call another form passing the current form, how
can I do that.
dtml-call RESPONSE.redirect('otherform'+?)
If I do
dtml-call RESPONSE.redirect('otherform')
The current form isn't being passed ?
Any ideas..
TIA
Stuart
NameVirtualHost 123.45.678.9
VirtualHost 123.45.678.9
ServerName www.mydomaine.com.au
ProxyPass / http://demon.server.com.au:8080/okstudio/
ProxyPassReverse / http://demon.server.com.au:8080/okstudio/
/VirtualHost
This is the setup you want. Note the trailing /'s. It means that
anything sent
I'm getting this when starting ZOPE:
2000-08-15T17:35:20 PROBLEM(100) ZServer Computing default hostname
ZOPE is running OK though. Is there a problem I do not see?
George
___
Zope maillist - [EMAIL PROTECTED]
HTTP is stateless. You'll have to build the entire query string and put it into
your redirect URL.
--jfarr
- Original Message -
From: Stuart Foster [EMAIL PROTECTED]
To: Zope List [EMAIL PROTECTED]
Sent: Tuesday, August 15, 2000 10:19 AM
Subject: [Zope] How to use RESPONSE.redirect ?
George Osvald wrote:
2000-08-15T17:35:20 PROBLEM(100) ZServer Computing default hostname
ZOPE is running OK though. Is there a problem I do not see?
Nah, you're just running in debug mode...
cheers.
Chris
___
Zope maillist - [EMAIL PROTECTED]
When trying to copy an item I get the following item on paste:
One or more items referred to in the clipboard data was not found. The item
may have been moved or deleted after you copied it.
This is a custom python class which is catalogued. Ive no idea why this is
happening. Any ideas?
--
Not to sound like a completely blithering idiot, but how does one go about
setting the permissions to allow it to be created. I'd assume in the
__ac_permissions class attribute. What the specific permission is escapes me.
DR
Andy McKay wrote:
Make sure you have the permissions set correctly
Theodore Patrick writes:
Is it possible to look up other SQL record values while iterating through a
DTML-IN?
I did not understand your requirements.
But the answer is yes:
dtml-let query_results=SQLMethod
dtml-in query_results
dtml-var
Chris Withers writes:
I have a list of string.strip'ped strings which I'd like to render using
structured text.
Input:
"""
sdfsdf
- sdfsdf
- sdfsdf
- sdfsdf
"""
Structured text output:
"""
psdfsdf
- sdfsdf
Jean Jordaan writes:
... anonymous user despite authentication
(this is from ccDocClass_add). When I arrive I *still* see:
I may be a cache issue as suggested earlier in the list.
However, I may also be a Zope feature.
When you access an unprotected object, Zope may not
determine
Chris Withers writes:
Why and how are python tuples (like, this) handled differently (and not
in a logical way I can see...) than python lists [like, this]?
The "how" has been explained already.
The "why" is only my guess: support for the widespread idiom
"dict.items()", "objectItems" etc.
From: "Daniel Rusch" [EMAIL PROTECTED]
I've created a product, installed it and it appears on the Product
Management at /Control_Panel / Products list.
The question is how do I get it to appear in the drop down of Available
Objects?
You have to register the class it defines. If you want
dtml-call "REQUEST.redirect('foo.html')"
Should do it!
or maybe
dtml-call "REQUEST.redirect(strPage+'.html')"
dtml-call RESPONSE.redirect('otherform'+?)
If I do
dtml-call RESPONSE.redirect('otherform')
The current form isn't being passed ?
Any ideas..
TIA
Stuart
Thanks,
I had made a small misspelling which did not generate any errors but which
hosed the Product.
New problem,
My product appears on the Product Management at /Control_Panel / Products
page and in the drop down of Available Objects. I select my Product from the
drop down
and I get my add
Nope, using cookies for authentication actually. Curious what the cookies
are used for now..
--
Andy McKay, Developer, ActiveState
http://www.ActiveState.com
Programming for the People
- Original Message -
From: "Brian Lloyd" [EMAIL PROTECTED]
To: "'Andy McKay'" [EMAIL
You will probably find you are missing a doc string. After your method
declaration you must have a string enclosed with 3 single quotes (''') so:
def manage_addFrameWorkDoc:
''' this is the doc string you must have '''
--
Andy McKay, Developer, ActiveState
All modules published by Zope must have a "doc string" i.e. a Python comment
defining the content before any other Python code. For example:
""" Doc string for Frame Work Doc product """
import string
# etc
-- Loren
- Original Message -
From: "Daniel Rusch" [EMAIL PROTECTED]
To:
Andrew campaign cannot accept | contributions from corporations,
Andrew PACs or special interest organizations so | we rely on
Andrew contributions from individuals like you.
Andrew And you are now Lyno Sullivan, Spammer and in violation of
Andrew your own laws.
What is
(I speak frech, sorry for my english!)
I created a ZClass, zRow. This class can contain other ZClass: zField_Text,
zField_Date, etc.
This let me define the columns contained in a zRow.
I then defined a Class zTable, wich contains zRows.
Question:
- In my manage tabs, I needed a have a
Hi,
the answer to my post
[Zope] restrict -tree tag global navigation- to subfolders
Marcus Schopen [EMAIL PROTECTED]
Tue, 15 Aug 2000 00:00:42 +0100
seems to be !--#var "SideBar(PARENTS[-2],REQUEST)"--.
Right?
Bye
Marcus
__
(0 Marcus Schopen
HEllo,
I'm looking for providing a way to generate a vcard for desktop
adressbooks.
I guess someone already thought about that but i can't find
anything on zope.org or mail archive.
Any tip out there ?
Didier.
___
Zope maillist - [EMAIL
cut and paste of catalog aware products is broken pre 2.2. i think it is all
fixed in 2.2+ ?
Andy McKay wrote:
When trying to copy an item I get the following item on paste:
One or more items referred to in the clipboard data was not found. The item
may have been moved or deleted after you
Sorry forgot to say Im in 2.2 before latest hotfix. I had a different
problem prior to my 2.2 upgrade.
--
Andy McKay, Developer, ActiveState
http://www.ActiveState.com
Programming for the People
- Original Message -
From: "Terry Kerr" [EMAIL PROTECTED]
To: "Andy McKay"
At 2000-08-15 10:18 +0200, "Frank Tegtmeyer" [EMAIL PROTECTED] wrote:
The current format is Hotfix_08_09_2000, my proposed format is
Hotfix_2000-08-09.
This is the ISO 8601 format (abbreviated form).
Reasoning:
First of all Zope is a product of a north american company but is used
Chris Withers wrote:
George Osvald wrote:
2000-08-15T17:35:20 PROBLEM(100) ZServer Computing default hostname
ZOPE is running OK though. Is there a problem I do not see?
Nah, you're just running in debug mode...
But, why is it a 'PROBLEM', why not 'INFO' ?
--
Do not meddle in the
Dieter Maurer wrote:
Dear Zopistas,
I plan to write another book about Zope: "Building Dynamic WebSites
with Zope".
The book idea:
Realize a demanding dynamic WebSite with Zope.
Describe everything that is necessary for this purpose.
This will contain:
Concepts: HTTP,
Hi,
Didier Georgieff wrote:
HEllo,
I'm looking for providing a way to generate a vcard for desktop
adressbooks.
I guess someone already thought about that but i can't find
anything on zope.org or mail archive.
Any tip out there ?
Just send your self a vcard and look at the text...
i had horrible cut and paste problems with my python product in 2.1.6. Then
when I imported instantiations of my product into a fresh install of 2.2, I
still am having problems. However, if I create a new instance of the product
in 2.2, it all seems to work fine.
Andy McKay wrote:
Sorry
On Wed, 16 Aug 2000, Peter Hernberg wrote:
--- Chris Withers [EMAIL PROTECTED] wrote:
Peter Hernberg wrote:
Here's the method that calls that method:
dtml-var "get_storys"
Why the quotes?
try dtml-var get_storys instead
But then I get the following weird error:
Thanks! Tried copying and pasting newly created 2.2 objects and still have
the same problems hmmm
--
Andy McKay, Developer, ActiveState
http://www.ActiveState.com
Programming for the People
- Original Message -
From: "Terry Kerr" [EMAIL PROTECTED]
To: "Andy McKay"
On Wed, 16 Aug 2000, Stuart Foster wrote:
I want to use redirect to call another form passing the current form, how
can I do that.
dtml-call RESPONSE.redirect('otherform'+?)
If I do
dtml-call RESPONSE.redirect('otherform')
The current form isn't being passed ?
If you want to pass the
Once again I'll point out that I have a patch that allows sequence_item. I've
submitted it to the collector but it was rejected because of the AFAIK
not-yet-scheduled "named dtml-in" feature.
http://www.zope.org/Members/jfarr/Patches/dtml-in-sv/
--jfarr
Hardware, n.:
The parts of a
On Wed, 16 Aug 2000, David Trudgett wrote:
At 2000-08-15 10:18 +0200, "Frank Tegtmeyer" [EMAIL PROTECTED] wrote:
The current format is Hotfix_08_09_2000, my proposed format is
Hotfix_2000-08-09.
This is the ISO 8601 format (abbreviated form).
Reasoning:
First of all Zope is a product
At 2000-08-16 01:54 +, Curtis Maloney [EMAIL PROTECTED] wrote:
So, when are you joining me in working in UTC? I mean, really. We deal with
people globally on a daily basis. Why bother with all this timezone nonsens?
So I get up and out of bed at 2100, get to work at a fresh and early
Stuart Foster Wrote:
I want to use redirect to call another form passing the current form, how
can I do that.
dtml-call RESPONSE.redirect('otherform'+?)
Hi Stuart,
i ran into the same problem a little while ago. i was trying to pass the
user around to the proper displayprocess
Hello,
my installation is Zope 2.2.0 on W2K.
I try to use the find method as follow, why can't it runs?
dtml-var "_.find('doraemon','dora')"
it said Attribute error: find
-IGUN-
___
Zope maillist - [EMAIL PROTECTED]
On Tue, 15 Aug 2000, Kapil Thangavelu wrote:
#example call to above
#dtml-call "RESPONSE.redirect(URL1+'?'+url_encode_form_vars(_))"
If your original form submits using the GET method, then QUERY_STRING
will contain the already URL encoded parameters that the browser
sent originally.
DTML
On Wed, 16 Aug 2000, Indra Gunawan wrote:
my installation is Zope 2.2.0 on W2K.
I try to use the find method as follow, why can't it runs?
dtml-var "_.find('doraemon','dora')"
it said Attribute error: find
_.string.find
--RDM
___
Zope maillist
On Wed, 16 Aug 2000, Scott Shepherd wrote:
In DTML is it possible to get an object using its url? Something like
dtml-with "get_object( '/some/local/url' )".../dtml-with
Something like.
I asked this question a long time ago, and refound the answer by
searching the zope.nipltd.com
Make sure you have the permissions set correctly for that product, so that
you are allowed to create it.
--
Andy McKay, Developer, ActiveState
http://www.ActiveState.com
Programming for the People
- Original Message -
From: "Daniel Rusch" [EMAIL PROTECTED]
To: [EMAIL
On Mon, 14 Aug 2000, Martijn Faassen wrote:
Hi there,
What I want is an acl_users equivalent that has an SQL database backend.
I want an easy to understand, easy to install solution for this that
has some kind of future in Zope land. Currently I'm deploying 2.1 but
that should change into
90 matches
Mail list logo