--- In [EMAIL PROTECTED], Lalo Martins [EMAIL PROTECTED] wrote:
snip
We first conceived it as a kind of Zope-based version of
unittestgui.py - you create a "TestRunner" object giving it the
package, module and name of a TestSuite object generator (see
the PyUnit documentation) and inside it
Toby Dickenson and Brian Lloyd wrote:
list.append(DisplayClass(name,self))
list.append(DisplayClass(name,self).__of__(self))
class DisplayClass(Globals.Persistent):
class DisplayClass(Globals.Persistent, Acquisition.Implicit):
Okay, this did the
What do people think of this? What does DC think of this? Can I
go ahead and develop it in this direction?
For our XP endeavors, we've developed a testing framework we call
SimpleTest, which tests our systems using HTTP requests. Tests are
written in XML, along the lines of:
?xml
The WriteLocking RiskFactors artifact has had some new work done on it and
I'm interested in some editorial comments and review before work begins on
Architecture and UseCases.
http://dev.zope.org/Wikis/DevSite/Projects/WriteLocking/RiskFactors
Make any comments you have at:
I have developed a flock of Python products that have attributes
'first_date', 'last_date', and 'ok_to_publish' with the intention that
these attributes will be set by the content managers. Each product also has
an 'isPublishable' method that returns true if 'ok_to_publish' is true
_and_
Lalo Martins [EMAIL PROTECTED] writes:
Then I figured in the long run a Product isn't the best
sollution; instead, fiddling with App/Product* sounds more like
it, to allow developers to register tests just like they
register classes, ZClass superclasses, _misc and help. Of
course, just like
In article a05001900b61b0b6ac87c@[10.0.1.2],
Itai Tavor [EMAIL PROTECTED] wrote:
- I'm not sure how to customize a UserSource to access the
propertysheets on the Customer and Reseller classes. The easiest way
seems to be to define userExists, userRoles and userAuthenticate
methods in a
And now the big question...
How do you migrate and existing application from ZClasses to Python
products? I've got about 50,000 objects. Can it be done or am I stuck
with ZClasses?
Hopefully,
Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P.
Write a Python Method (install the PythonMethods product first) called say,
publishableObjectValues that does that:
paramself/param
# functions that returns publishable objects
result = []
for o in self.objectValues():
if o.isPublishable(): result.append(o)
return result
--
Itamar
Ty Sarna wrote:
Unfortunately there are a lot of things that Zope just can't do because
there is no way to get a persistent "ticket" for an object that can be
handed out to some external system, and then later redeemed for the
(properly wrapped) object. Pathnames are not useful, because they
Andy McKay writes:
Cool Project...
That means I'm screwed. :)
And now the big question...
How do you migrate and existing application from ZClasses to Python
products? I've got about 50,000 objects. Can it be done or am I stuck
with ZClasses?
Well the number of objects doesnt
DataSkinAddons 0-0-2
http://www.zope.org/Members/stevea/DataSkinAddons
Changes:
DataSkinAddons 0-0-2, 24 October 2000
DataSkinAddons 0-0-2 works with ZPatterns-0-4-3b1 and Zope 2.2 only
Various changes to CatalogTrigger to bring it in line with the
new Expressions module from ZPatters
Morten W. Petersen wrote:
I've managed using the ZCatalog now. However, I have a small problem:
When I instansiate a ZCatalog at the root of a tree, and search
for all objects matching a given meta-type, all the objects in
the entire tree are returned.
Is there a way to instruct the
Okay, this did the trick, but I'm not very happy with the result :-(
I don't want the DisplayClass to be acquiring and I don't really see
(from a moral standpoint ;-) why I should need to mix in an Acquisiton
class to make security work :-S
I suspect that was a rhetorical question, but ill
On 24 Oct 2000 15:14:24 GMT, [EMAIL PROTECTED] (Ty Sarna) wrote:
Unfortunately there are a lot of things that Zope just can't do because
there is no way to get a persistent "ticket" for an object that can be
handed out to some external system, and then later redeemed for the
(properly wrapped)
Michel Pelletier wrote:
We will be conducting a community poll to decide what to call Python
(Perl, insert your language here) Methods.
[snip]
So, before the poll, we are calling for nominiations from the
community. Please send me an email containing one or more candidate
names. These
Hi,
Two more questions for you:
1. kindly let me know how to export an output of any method to word ,msexcel
etc from zope, where output may be a tree structure or tabular form data
etc.
2. Let me also know how to send a report(output) to the printer.
This seems like a simple question.
How do I include a Method in a different folder?
I have two folders and two methods:
/editor/
edit
/mojo/art/
add_art_html
In my file "add_art_html" I want to add this code:
dtml-var /mojo/editor/edit
But when I try to view it I get a
From: Aleksander Salwa [mailto:[EMAIL PROTECTED]]
dtml-call "REQUEST.set('new_id', lastID+1)"
dtml-call "REQUEST.set(lastID, new_id)"
In the above line --- do you want to set up new value for ZClass property,
isn't it ?
If so, you have to use manage_changeProperties method of property sheet.
From: Bill Anderson [mailto:[EMAIL PROTECTED]]
Is it more important that they be in an order, or that they be in a
specific sequential list?
Actually what is important is that they are integers and in a specific
order. So the datestamp method isn't that feasible for me.
(I'm trying to make a
Hi all!
I am aware of URL: http://www.zope.org/Members/anser/apache_zserver,
but I am looking for at way to make Apache serve Zope from the root URL.
It is possible to make the apache front end
http://machine.domain.com/Zope be served by zope backend
http://machine.domain.com:8080, but what
Jorn,
It's perfectly possible, you just need to do a little work ;)
Your proxy pass will be something like this:
ProxyPass / http://myserver.com:8080/
ProxyPassReverse http://myserver.com:8080/ /
for the other part of serving static content, it really depends what you
want but here are two
* "Phil Harris" [EMAIL PROTECTED]
| Jorn,
|
| It's perfectly possible, you just need to do a little work ;)
That's OK, that way it'll be more fun :-)
| Your proxy pass will be something like this:
|
| ProxyPass / http://myserver.com:8080/
| ProxyPassReverse http://myserver.com:8080/ /
I had
At 10:01 pm +1000 22/1/01, steve smith wrote:
Anyone have any good, real-world examples using DTML-Sendmail tags? Would
especially appreciate examples integrating SQL queries.
Ta!
Steve
What, you mean including ones that send mail into the future? :)
(couldn't resist).
Assuming you've set
Hi Tony,
Thanks for taking the time to answer. The "MailHost" object seems to be the
key. I tried going around it (using the SMTPHost attribute, from memory),
without much luck. Also learnt that one needs at least modest knowledge of
SMTP syntax when forming the option lines!
Thanks again,
Hi all, I am trying to follow the quick tutorial and immediately run into
things I do not understand. I am trying to create a folder as explained in
the docs.
I get the error:
Error Type: SuperCannotOwn
Error Value: Objects cannot be owned by the superuser
This is the example in
hi all,
I'm having problems serving up the EIRC java chat-client from within zope.
I have uploaded two java archives EIRC-gfx.jar and EIRC.jar as file
objects via the management screen. Zope has recognised these as
'application/java-archive' content types.
I am using the following dtml
I am using Zope and Python 1.5.2 on Win2000. I guess that it is a fairly
simple setup.
My Zope site is in a folder called c:\mxmZope, and my vanilla Python is in
C:\Program Files\Python.
usually when I write Python I just use PythonWin to edit and run my scripts.
I then write test in the buttom
* [EMAIL PROTECTED] (JXrn Helge B. Dahl)
| | for the other part of serving static content, it really depends what you
| | want but here are two ways to do it.
| |
| | 1.use the LocalFileSystem product,
| | http://www.zope.org/Products/Members/jfarr/Products/LocalFS/LocalFS-0.9.6.tg
| | z
|
I suppose you've just installed Zope and you're logged in as "Superuser"
And that's the problem.
The superuser cannot own folder, files etc.
Add a "User Folder" and add a new User in that folder.
Then you have to restart Zope and log in as the new user.
Now the new user can add as much folder as
Hi J.J.,
this problem is a result of the restrictions applied by zope. Nothing is
wrong with that.
It is just that it's not explained thouroughly or most people new to zope
tend to overread that in the manual ;-)
Here's what You do:
1. Login as the Superuser (the primary account provided after
Hi!
I
need to send out mass mailings from time to time
(newsletters, announcements and the
such).
Is
there an easy way to get this done? I already
have the email addy's in the
database.
TIA,
Yvonne
~~~
Yvonne Totty
Database Engineer
Jorn,
I'm no Apache GrandMaster but couldn't you use the [p] option of a
RewriteRule to make it proxy if the url matches a pattern:
RewriteEngine on
RewriteRule !^(/static/.*) http://myserver.com:8080$1 [p,l]
Or something along those lines.
hth
Phil
[EMAIL PROTECTED]
- Original Message
"JHBD" == JXrn Helge B Dahl [EMAIL PROTECTED] writes:
JHBD On a second thought: What I _really_ want (I think, unless
JHBD someone tells me differently :-) ) is a conditional
JHBD ProxyPass, to tell apache to redirect everything _unless_
JHBD the URI is /static (or something).
how to for that function REDIRECT understand a variable.
ex.
dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=dtml-var
test')"
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML
how to for that function REDIRECT understand a variable.
ex.
dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=dtml-var
test')"
You can't nest dmtl tags
try :
dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=' + test)"
Rik
If you don't find the person(s) you are looking for, let me know. I am
an experienced Zope/Python/SQL/HTML/JavaScript/Unix/Windows developer.
Additionally, I have an excellent working relationship with two other
developers with similar skills. Unfortunately, we are located in
Wisconsin.
Dan
dtml-call
"RESPONSE.redirect('http://zope.org/index.htm?cod='+_.str(test))"
You can't (and don't need to) put dtml tags inside dtml tags.
Joaldo Junior wrote:
how to for that function REDIRECT understand a variable.
ex.
dtml-call
dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=' + test)"
- Original Message -
From: "Joaldo Junior" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 24, 2000 3:38 PM
Subject: [Zope] redirect
how to for that function REDIRECT understand a variable.
ex.
I'm trying to use M2Crypto to access some https pages through an external
method, but I get this error:
SSLError: SSLEAY_RAND_BYTES: PRNG not seeded
How do I seed the PRNG?
I am using the windows binary of M2Crypto-0.05-snap3
Thanks,
Erik Myllymaki
[EMAIL PROTECTED]
* [EMAIL PROTECTED] (JXrn Helge B. Dahl)
On a second thought: What I _really_ want (I think, unless someone
tells me differently :-) ) is a conditional ProxyPass, to tell apache
to redirect everything _unless_ the URI is /static (or something).
But this is probably something for apache
2. logout as superuser (e.g. close all browsers...)
Ha,
I always wanted to bring in a IMNSHO better way to "logout"
- it works at least in IE.
try http://log:[EMAIL PROTECTED]
So the cached login/password are overwritten by
log/meout and zope (or every other server) brings
up the login
Hi all,
I wanted to use bcc in a mail generated though a
dtml-sendmail.../dtml-sendmail (Included in MailHost) tag.
But it did not work. All I got was a junk line like this:
subject: foo barbcc: user1, user2, user3
mark the missing carriage return and/or line feed between the subject and the
hi yvonne,
you can use the zope send mail method to pull data from a database. the
problem
is with pulling in the text. sendmail appears to send only literal
text, i.e., it does not parse html markup. we are using a mysql
database to pull text and a second to pull names and emails, etc. to
Hi Kathy,
Error Type: SyntaxError
Error Value: invalid syntax
Troubleshooting Suggestions
It looks like your addEntry.py file has some syntax mistakes in it
(think mis-spelled, badly indented or otherwise defective python ;-) Try
comparing it with what it should be and see if the problem
What would be the correct dtml-if contrstruct for this behavior?
I want to check and see if zope can resolve a url to a valid object.
Ie does http://foo.com/bar/foo get you to a valid page or is it not
found.
I need something like dtml-if http://foo.com/bar/foo that way I can know
when to
Noah wrote:
In my file "add_art_html" I want to add this code:
dtml-var /mojo/editor/edit
But when I try to view it I get a KeyError.
I also tried:
dtml-var '/mojo/editor/edit'
If Steve A's patch ever makes it into the core, you could do:
dtml-/mojo/editor/edit;
...and
Marc Breitenreicher wrote:
I suppose you've just installed Zope and you're logged in as "Superuser"
And that's the problem.
The superuser cannot own folder, files etc.
...and I'd still like to know why ;-)
*stir* *stir*
Chris
___
Zope maillist
Max Møller Rasmussen wrote:
This works nicely, but when writing Zope products I get really frustrated. I
cannot easily automate my tests.
I put my products into C:\mxmZope\lib\python\Products\name and edit them
from there, but trying to edit just a simple syntax error means a restart of
Hi!
how to for that function REDIRECT understand a variable.
ex.
dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=dtml-var
test')"
use
dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod='+test)"
with "" you will enter the python scope and thus no dtml syntax is
Hi,
Im using this:
dtml-sendmail smtphost="mail.host" port="25"
To: dtml-var email
From: dtml-var emailfrom
Subject: dtml-var subject
Hi,
blah blah
/dtml-sendmail
Im supposing that the double brackets is due to the fact that the email address
itself is encapsulated with brackets as well as
Hi...
I want to do something like this...
dtml-in InMethod
input type=text name=Name value="dtml-var name null="Name Here""
/dtml-in
But, if InMethod return nothing it display this input tag one time
There's a way to do that??
Thanks
--
---
Diego Rodrigo
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
Withers
I suppose you've just installed Zope and you're logged in as "Superuser"
And that's the problem.
The superuser cannot own folder, files etc.
...and I'd still like to know why ;-)
Well I for one have accidently
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Diego
Rodrigo Neufert
dtml-in InMethod
input type=text name=Name value="dtml-var name null="Name Here""
/dtml-in
But, if InMethod return nothing it display this input tag one time
There's a way to do that??
dtml if
Hi Paul,
Thanks for that response, but .
I can send single email with one recipient without problems.
I need to use a bcc: for about 4000 users. No way doing that halfway
performant with a dtml-in ... /dtml-in statement.
I am thinking of the
bcc: user1, user2, user3 user4000
header.
Assume following :
Folder1
sql
show_abc
method_showdata
Folder2
show_abc
method_showdata has among it the following code :
dtml-with sql
dtml-in selectallcentres
tabletrtd
dtml-var show_abc
/td/tr/table
/dtml-in
/dtml-with
1) When you call this function from
Chris Withers wrote:
Paul Winkler wrote:
Hi,
Has anyone run up against a limitation on the number of
users that can be in
one acl_users folder? Either a hard limit or a practical
limit?
IIRC, zope.org's acl_users has about 11,000 people in it without too
many problems...
I developped a toggle button to let the users hide/show the menus.
I use a cookie to store the current value. The code I use is:
dtml-if "State=='ON'"
dtml-call "RESPONSE.setCookie('affmenu', '1')"
dtml-else
dtml-call "RESPONSE.setCookie('affmenu', '0')"
/dtml-if
/head
I have just started looking at zope for the site I
am developing. I was wondering if anyone could tell me whether it sounds like an
appropriate tool to use.
The basic idea of my site is to be a sort of
multi-user-dimension for text. Meaning, we'll have various books available in a
How can I render an object in DTML if I have its id as a string?
I would like to construct its name as a string and then call the object
variable by its name.
(Meaning I will have to make sure such an object exists)
tia,
CU+Prost,
Danny
___
Zope
[..]
My questions are:
1) Could Zope help me keep track of who is reading what and match people up
for discussion?
[..]
4) Could Zope handle right to left text and non-Latin character sets?
Think of it this way: Zope can do anything you can program in python.
Anything you cant program, have a
Hello all,
I am trying to use the DTML engine outside of Zope, and would like to be
able to create local variables in my DTML documents. Because I have no
access to Zope, I can't do REQUEST.set, nor can I use the method shown on
http://www.zope.org/Members/Duncan/LocalVars. So, the questions
when I try to start zope on windows machine i
get:problem(100) ZServer Computing local hostname
then it says:ZServer Medusa (V1.16.4.3) started
at... timestamp...hostname:
dsl1254-096...isp.netPort:8080
then the FTP server
starts:authorizer:nonehostname: rlhomeport:8021
the PCGI server
On Tue, 24 Oct 2000, Joaldo Junior wrote:
how to for that function REDIRECT understand a variable.
ex.
dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=dtml-var
test')"
DTML tags can't be nested.
Try:
dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod='+test)"
Diego,
Do you mean that you want at least one input tag appearing at all times?
If so, try this:
dtml-in InMethod
input type=text name=Name value="dtml-var name null="Name Here""
dtml-else
input type=text name=Name value="dtml-var name null="Name Here""
/dtml-in
hth
Phil
- Original
Danny,
Try something like
dtml-var "_[id_you_created]"
or
dtml-var "_.getitem(id_you_created,1)"
hth
Phil
- Original Message -
From: "Danny William Adair" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 24, 2000 6:50 PM
Subject: [Zope] Calling objects by name
|
Phew Aharon,
many questions...
Did you take a closer look at zope.org? I think many questions are answered
within the site. But let's get going...
1) Could Zope help me keep track of who is reading what and match people up
for discussion?
You could track down people with cookies :-( or
Sean McGrath wrote:
Hello all,
I am trying to use the DTML engine outside of Zope, and would like to be
able to create local variables in my DTML documents. Because I have no
access to Zope, I can't do REQUEST.set, nor can I use the method shown on
Max M wrote:
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
Withers
I suppose you've just installed Zope and you're logged in as "Superuser"
And that's the problem.
The superuser cannot own folder, files etc.
...and I'd still like to know why ;-)
Well I for
Hi,
I am not quite sure if this is what you want but may this helps
dtml-with bar
dtml-if "REQUEST.has_key('foo')"
do something
/dtml-if
/dtml-with
This is not resolving the URL.
If you found a solution let me know.
Jens Grewen
- Original Message -
From: "kosh" [EMAIL
Hi Zopistas,
I want to include the owner (from acl_users) of a page in my HTML-output.
Unfortunately I'm not able to produce what I want.
Any hints?
Thanks,
p@rick
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
How about (sort of tested):
dtml-call "REQUEST.set('newurl',_.string.split(your_url,BASE0)[1])"
dtml-try
dtml-var "restrictedTraverse(newurl)"
dtml-except
dtml-commentignore the error or otherwise report it/dtml-comment
/dtml-try
hth
Phil
- Original Message -
From: "Jens Grewen"
On Wednesday 25 October 2000 09:58, Patrick Koetter wrote:
Hi Zopistas,
I want to include the owner (from acl_users) of a page in my HTML-output.
Unfortunately I'm not able to produce what I want.
Any hints?
Thanks,
p@rick
i would think that
dtml-var
Does anyone have any LoginManager 0.8.8b1 example
code? It almost looks like you can extend the system
using plugins, but I don't know how that's done.
Anyone else have luck doing this? If so then do you
have any examples/suggestions?
All I want is a simple ZODB/cookie based system, but I
I have some DTML that needs to call an external method that returns a dictionary. I
don't have any problem referencing the resulting dictionary by doing something like
dtml-var externalMethod()['key1']
dtml-var externalMethod()['key2']
.
.
.
However, I need to do this for several keys, and
hi all
quickie:
if dtml-in, i can use size to limit the results rendered, what do i use in
dtml-tree?
if there's no such attribute, any workaround?
i've searched the mailing list and found similar question with no response.
thanks
--
http://www.kedai.com.my/kk
http://www.kedai.com.my/eZine
I have a question about Squishdot.
Error:
Traceback (innermost last): File
/wwwnodes/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, in
publish_module File
/wwwnodes/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, in
publish File
Matthew Wilbert wrote:
I have some DTML that needs to call an external method that returns a dictionary. I
don't have any problem referencing the resulting dictionary by doing something like
dtml-var externalMethod()['key1']
dtml-var externalMethod()['key2']
.
.
However, I need to
Hi.
This is really a great product.
Unfortunately, I'm not able to create a chart with multiple columns using a
ZSQL Data Method.
Multiple columns with a DTML-Method works fine.
Do I miss something. Any ideas?
Thanks for any help. Regards, Marc Ludwig ([EMAIL PROTECTED])
Michel Pelletier wrote:
We will be conducting a community poll to decide what to call Python
(Perl, insert your language here) Methods.
[snip]
So, before the poll, we are calling for nominiations from the
community. Please send me an email containing one or more candidate
names. These
80 matches
Mail list logo