Hi all,
I'm in the process of creating a Python based product, and have a need to
call the base classes index_html method.
My problem is that I need to call it from my classes index_html.
My class has DTMLDocument as the base class so I want to call something like
DTMLDocument.index_html().
Phil Harris wrote:
Hi all,
I'm in the process of creating a Python based product, and have a need to
call the base classes index_html method.
My problem is that I need to call it from my classes index_html.
My class has DTMLDocument as the base class so I want to call something like
Steve,
I'm pretty sure I've tried that but I'll try it again and see what happens,
hang on I'll be right back.
Right I'm back, I thought I'd tried it and I had, I get this error:
Error Type: TypeError
Error Value: call of non-function (type None)
Traceback (innermost last):
File
On Wed, 2 Aug 2000 22:41:46 -0400 (EDT), Chris McDonough
[EMAIL PROTECTED] wrote:
Karl,
Two things come to mind:
First, make sure you're returning the instances in the context of their
container, e.g. instead of:
def returnstuff(self):
class foo:
pass
return
Yay, Solved it!
I just had to call __call__ from the DTMLDocument and bob is now married to
my mothers sister.
Phil
[EMAIL PROTECTED]
- Original Message -
From: "Phil Harris" [EMAIL PROTECTED]
To: "Steve Alexander" [EMAIL PROTECTED]
Cc: "Zope-Dev@Zope. Org" [EMAIL PROTECTED]
Sent:
First, make sure you're returning the instances in the
context of their
container, e.g. instead of:
def returnstuff(self):
class foo:
pass
return foo()
do
def returnstuff(self):
class foo:
pass
return
At 07:09 PM 8/2/00 -0600, Bill Anderson wrote:
I think I have a decent handle on this concept, but something seems
lacking, I hope
someone can clear it up :)
So, let us say I have an object, call it a Member. :)
And let us say I want to be able to add a property sheet to it in a
Hi there,
While playing with Squishdot to make it more ZSearch-friendly, I noticed
that ZCatalog isn't actually ZSearch friendly either.
I think the following patch corrects that, if peopel agree, I'll stick
it in the collector.
cheers,
Chris
___
D'Oh!
Here's the file...
Chris
--- ZCatalog.py.old Thu Aug 3 15:17:05 2000
+++ ZCatalog.py Thu Aug 3 15:21:25 2000
@@ -392,7 +392,7 @@
def _searchable_result_columns(self):
r = []
-for name in self._catalog.indexes.keys():
+for name in
On Thu, Aug 03, 2000 at 04:07:31PM +0100, Chris Withers wrote:
D'Oh!
Here's the file...
Chris
--- ZCatalog.py.old Thu Aug 3 15:17:05 2000
+++ ZCatalog.py Thu Aug 3 15:21:25 2000
@@ -392,7 +392,7 @@
def _searchable_result_columns(self):
r = []
-
I would find an abstract ZClass (or Meta ZClass) concept
very nice (and useful).
I would like to use it, e.g., for a general hieararchical view on relational
databases. The view allows browsing (via the tree tag) and selection
of one or more items.
Most can be implemented independantly of the
At 05:38 PM 8/3/00 -0600, Bill Anderson wrote:
"Phillip J. Eby" wrote:
PersistentSheetProviders can do what you want - *but* there is one
drawback. PSP's have no concept of a sheet schema, so you have to add the
sheet and set up its schema in code for *each instance*.
Rats. :/
I forgot
Hi all,
In LDAP i have an object with name and passwordobject. With Zope LDAP
method, can i see this password?
I have a login window created in Zope and when a user will login i must
control if the user exists. How can i do this?
Any ideas?
$Regards
MM
I'm trying to access data via the ZODBCDA latest build and Zope 2.2
Whenever the ODBC query returns data, the user is challenged for
authentication.
Pages that do not use ODBC and database methods that return empty sets are
not challenged.
Has anyone else encountered this?
Yes, I have
There is a standard for calculating weeknumbers. It is in an ISO standard,
but I do not know the number of it. I implemented it in another application
a while back. I got it from the NNI, the Dutch national 'ISO' which follows
the ISO standards on this.
The standard: the first day for
Hi,
I've got two questions.
1.Is Zope 2.2.0 masking the length of the passwords?
2. the more important-
I'm using a method to change properties by form. The user i.e. Tim has
the role manager in the highest user_folder and acquisition is kept but
Zope tells me that the user is not authorized.
Hi,
I've got two questions.
1.Is Zope 2.2.0 masking the length of the passwords?
2. the more important-
I'm using a method to change properties by form. The user i.e. Tim has
the role manager in the highest user_folder and acquisition is kept but
Zope tells me that the user is not authorized.
"R. David Murray" wrote:
On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote:
| Well, yeah. A restricted python environment. The point being, it follows
| python syntax rules grin.
kind of... :-)
In what way does it *not* follow Python (expression) syntax rules?
_['something']
Craig Allen wrote:
As a quick and dirty alternative (untested), just edit your connection
parameters in your Mysql connector to point to the different server (you'll want
to close the connection first, I expect).
I think this is probably the best way to do it :-)
The idea behind a database
Svante Kleist wrote:
Also, document_src() is a "Python method" function
included in the "Python Method" product
Sorry but that simpyl isn't true :S
The method below works on a slightly patched Zope 2.1.6 with no Python
Methods product installed...
cheers,
Chris
!--#var
Jean Jordaan wrote:
Hmm, "Note: there are big bunches of bugs still." I guess
I shouldn't try to premiere a snazzy intranet on this by
Friday ..
Er, no ;-)
Do you know if there are stable core features (basically
users joining and submitting news items) that one could use?
I.e. will I be
Vincent Maton wrote:
Thank you a lot for your help, it's very kind of you.
Now with your idea, I get the date separetely but I need to get the first
date with
00-09-10
and the second date as the same
00-09-17
and the next as the same and always like that...
Can you
Sven Hohage wrote:
Hallo,
I've searched in the mailing archive about the question how to expand a
particular branch but I didn't find anything.
That's my problem: I'm building a newsboard and when you want put a new
message on it, the correct day should be opened.
Example- +
Ragnar Beer wrote:
Howdy!
I've been experimenting with trees for a while and discovered that
almost all innocent first time clickers were clicking on the text
_behind_ the plus and minus images instead on the images themselves.
So I decided to make the text a link with the same url as
hi all,
have a little problem with LDAPAdapter.
I have a working directory server using LDAP protocol.
When i create the LDAPAdapter in Zope it works fine, but when a user want to
connect to my site, he gets an authentication error. But the user exists in
the directory server.
Can someone
Sven Hohage wrote:
I like the property of a folder being a list, because new entries should
be automatically updated(strings with the current month-name).
I've tried tokens but it's not working correctly.
dtml- if "not MonthNow in oldTime"
dtml-call "oldTime.append(MonthNow)"
on 3/8/00 10:14 am, Chris Withers at [EMAIL PROTECTED] wrote:
"R. David Murray" wrote:
On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote:
| Well, yeah. A restricted python environment. The point being, it follows
| python syntax rules grin.
kind of... :-)
In what way does it *not*
I started with popen2 and friends.. but that didn't seem to play well
with Zope... probably mixing processes and threads is a bad idea... I
dunno. Anyway I'm not sure of the best way to do this in Windows. Of
course, ulitmately Shane Hathaway's idea of having a separate 'mini
cvs servelet'
Hi,
is it possible with Zope, to display different pages depending on the roles
of the logged people ?
Thanks
Vincent
PS : If it is in a documentation, which one ? Thanks again
___
Zope maillist - [EMAIL PROTECTED]
Hi..
What's the best way to check if self.REQUEST.form.get('int_field') just contains
numeric data in a external method?
Thanks...
--
---
Diego Rodrigo Neufert
-webmaster
---
(Magic Web Design)
(email) ([EMAIL PROTECTED])
(curitiba) (pr)
Vincent,
It's perfectly possible:
dtml-if "AUTHENTICATED_USER.has_roles(['Manager'])"
this is the management page
dtml-elif "AUTHENTICATED_USER.has_roles(['Member'])"
this is the normal members page
dtml-else
This is the joe public page
/dtml-if
hth
Phil
[EMAIL PROTECTED]
- Original
I think extending the input-tag name with :float, :int, or :long and
test with type() from python would do the trick.
I havn't tested it but theoreticly it should work.
For more info on form field definitions check out Zen's
How-To: Form Variable Types and Typechecking.
(I have used :tuple to
I am slowly getting the hang of Zope, but am confused about
something.
Either I don't understand how acquisition works, or there is
something special about how index_html is treated.
I had a folder with a index_html that had something like:
dtml-var standard_html_header
dtml-var content
I found quite an easy solution for Zope 2.1.6:
In lib/python/TreeDisplay/TreeTag.py you have to replace the "old
code" with the "new code". (Blame me - I forgot to make a copy
beforehands which keeps me from using diff.)
The idea is to "export" the piece of code that puts together the url
to
Bob Horvath wrote:
I would have thought it would have gone up a layer for index_html,
but then would have discovered content at the lower layer.
Sounds like your index_html is a DTML Document when it should be a DTML
method...
cheers,
Chris
___
Your example in a How-To may well be useful. However, I think you have
maligned the DateTime method. It is quite flexible about the input formats
it accepts. Have you read the extensive documentation in
../lib/python/DateTime/DateTime.py?
-- Loren
- Original Message -
From: "Darran
Hi.
Anyone know how to specify other error msg file?
I want the standard_error_message to still be my default error msg file but for
some dtml's I want to change it...
Thanks
--
---
Diego Rodrigo Neufert
-webmaster
---
(Magic Web Design)
I get KeyErrors from 2.2.0 with an Error value of a rubbish character
when trying to import a folder of various objects. This also happens
when trying to import the XML version, except the Error Value is 'id'
(but with no idea of where the error is in the XML file ...
irritating).
any ideas?
Hi,
I was taking a first look at Zope today. Now I am looking for a certain
feature and couldn't quite find it.If you could send me an URL where to look
for the Info I need, Thanks !
Q1: With what tool inside Zope do I program the HTML Templates ?
Q2: I want to fill those templates with
Rodrigo,
Two ways I can think of, just off the top of my head:
1. If you want just certain directories to have a different
standard_error_message, create a standard_error_message method in those
directories. (I've heard people complain of problems with this method,
though).
2. Encapsulate
Ragnar,
Caching is a subject I'm not all that familiar with but one I need to learn
really fast. My site is about to go live, and I have a monster of a query
that will bring my system to its knees if 100 students run it at a time. So
I'm sending this off to the Zope mailing list wondering if
I have a python script which uses XMLRPC to call an External Method that
packs the database.
Not ideal, but it does allow me to pack the database
a) From Zope
b) From the command line
c) Whilst the server is running
d) During very large imports which make ZCatalog Explode (I wish
CatalogAware
So In ZUBB (my discussion product) I want to be able to show how many
replies there have been to any one main topic. All replies are 'children' of
the main post and when I state it with
dtml-tree branches=children
Stuff
/dtml-tree
It works and knows that each message is a child of the
Andy Dawkins writes:
Thanks you for your prompt reply. I knew someone had to have a solution.
Would you be willing to send me the script? Better yet, put it up as
content on the Zope.org site. I have a feeling a list of solutions to this
would help the community.
All my best,
I have a
Title: RE: [Zope] ZODBCDA fails under 2.2
Thanks Petteri,
That did the trick nicely.
Alan
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 02, 2000 2:18 AM
To: [EMAIL PROTECTED]
Subject: Re: [Zope] ZODBCDA fails under 2.2
Hi,
update
Jason
I'm not sure if it is worthy of putting up on Zope.
Although I'm sure people will correct me if I am wrong.
But I have no problems in letting you have it
packDb.py is the main python script.
You will need to change the line that reads
Hi there,
I'm looking for a free(!) Windows 95/98 programm to map my Zope-FTP
to a drive letter on my Windows workstation. Commercial Versions are
ftpNetDrive or WebDrive. But these are not free.
Thank you
Marcus
P.S.: mounting Zope`s FTP with AFS (Alex FS to local directory on my linux-box
Greetings,
Is there a limit to the number of objects that may appear in a product?
The goal is to be search engine friendly:
http://www.myserver.com/us/ca/San_Francisco/mycategory/index_html
/myroot
/us
/mycategory
Would it be unreasonable to have 42620 folders (one for each US city
Andy Dawkins writes:
Thank you Andy. That was generous.
Have you ever used this from cron? Just so I know before I try it.
All my best,
Jason
I'm not sure if it is worthy of putting up on Zope.
Although I'm sure people will correct me if I am wrong.
But I have no problems in letting
On Thu, 3 Aug 2000, Chris Withers wrote:
In what way does it *not* follow Python (expression) syntax rules?
_['something'] doesn't just return the value from the dictionary which
has the 'something' key, if it's callable, it'll try to call it and then
return that... not nice :(
If you
On Thu, 3 Aug 2000, tom smith wrote:
I'm still getting allsorts of errors. My code is like this...
dtml-let yearnr="date.yy()" monthnr="date.mm()" daynr="date.dd()"
dtml-let startDateString="monthnr+'/'+daynr+'/'+yearnr"
dtml-in expr="get_days_events(startDateString)"
On Thu, 3 Aug 2000, Marc Dullien wrote:
Q1: With what tool inside Zope do I program the HTML Templates ?
Read the DTML reference.
Q2: I want to fill those templates with database entries
Read the ZSQL reference.
Q3: How can I do the linkage
Isn't that the same as Q2?
If you could send
My first question is "Do you realy need a drive letter?". If you don't
need a drive letter, but really just need a connection which is mapped
within the Windows drive space, there is a utility called Internet
Neighborhood from KnoWare. It allows you to map FTP sites into the
Windows 'File
"J. Atwood" wrote:
So In ZUBB (my discussion product) I want to be able to show how many
replies there have been to any one main topic. All replies are 'children' of
the main post and when I state it with
dtml-tree branches=children
Stuff
/dtml-tree
It works and knows that each
Send Zope maillist submissions to
[EMAIL PROTECTED]
To subscribe or unsubscribe via the web, visit
http://lists.zope.org/mailman/listinfo/zope
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
Can you shed any insite?
***Result of testing Z SQL Method with Zope 2.2 running as a service:
Z SQL Method at /scripts/Zope.pcgi / testing / test2
Error, sql.error: ('S0002', 173, "[Microsoft][ODBC
This is a problem I'm running into using Zope 2.1.6 and PTK 0.7.1 on an
NT machine...I plan on upgrading both as soon as the 2.2.1 bug fix is
released...I believe the problem is just a syntax one...
I'm running into a snag trying to access the value of a property I've
assigned to an instance of
Andreas Rippel writes:
I came across the situation, where the result rows of a Z SQL access
contained www strings like
www.uni-ko-ld.de/veranstaltungen/lehramt.html, see below.
Using ZSearch generated dtml-methods generated the following html code,
when the result set contains more
vikas writes:
For this i am using batch processing. But
it is giving me errors Such as key error [city],[state] and gives the url
of my page where i m using batchprocessing. Can someone help me out how to
overcome the problem this problem as this is very urgent for me.
...
You
David Riggs wrote:
This is a problem I'm running into using Zope 2.1.6 and PTK 0.7.1 on an
NT machine...I plan on upgrading both as soon as the 2.2.1 bug fix is
released...I believe the problem is just a syntax one...
I'm running into a snag trying to access the value of a property I've
Brad Clements writes:
... Name Error in called DTML method
dtml-var "FormatColumnTable(columnlist=packagecolumns,obj=GetSelf(),notable=1)"
Here, you break the namespace propagation!
As a general rule:
If you call a DTML object explicitely (i.e. inside "..."),
then *always* use
T.J. Mannos writes:
I have an ExternalMethod that processes an HTML file, extracts the contents
of the BODY tag, and wraps my site template around it. (In other words, it
takes a plain vanilla HTML file and adds standard_html_header and
standard_html_footer).
[See
Hi Peter,
Hmm... I've never seen this problem, and I've been using
pcgi/FreeBSD since 2.2.8. I have however seen another problem:
http://lists.zope.org/pipermail/zope/1999-December/016465.html
that has never really been resolved. I'm going to try your
net.local magic to see if that has an
Hello,
When I installed the source code of 2.2.0 on my Linux machine, I got an
error message saying "Error 256" just after it began compiling the python
modules. The same thing happens when I attempt to install the linux2
release. Has anybody else experienced anything of thie nature?
Chris Withers wrote:
Deryk Barker wrote:
Try something like:
http://www.mysite.com/folder/dtmlmethod/view_source
404 document not found...:-(
Of course it was, I made up the url as an example :P
I'd like to view the source of my index_html.
So you go to:
Steve Sorenson wrote:
Hello,
When I installed the source code of 2.2.0 on my Linux machine, I got an
error message saying "Error 256" just after it began compiling the python
modules. The same thing happens when I attempt to install the linux2
release. Has anybody else experienced
Is it possible to have just one top level object that refers to
other objects that get overridden as you go into other folders?
Acquisition works the other way around. You can create objects in subfolders
whose contents are overriden higher up. You can't have an object at the top
whose
Hi,
I tried posting this to the comp.lang.pyton group, but I never got any
answer, so I was hoping that you friendly Zope folks could offer me some
advice.
The setting is this:
My web site collects big files (typically 2-5 MB) that the users
upload via HTTP POST (yeah, I know - FTP is nicer,
Hi all
I'm making a document class for a warehouse of papers.
It's based on ZCatalogAware and ObjectManager (to wrap
mainly PDFs and DOCs), and has fields:
title (string type)
origin (string type)
format No value for format_value.
typeNo value for type_value.
"format" and
Hi Jean
The value for a selection list can be any zope object that returns a list
eg. MyDocClass can have a property "Format" with a value "FormatList", where
FormatList is a dtml-method that returns a list.
Practically:
1.Go to the property sheet for your new class and add the property Format
70 matches
Mail list logo