Dear All,
I have this python module for uploading an image from a client to the
server (which would be subsequently inserted into a MySQL database, which
is still on the midst of being resolved). I''m trying to import this into
Zope as an External MEthod. It's contents are as follows :
Aleksander Salwa schrieb am Fre, 07 Jul 2000:
...
In mentioned method, to render document, I wrote:
dtml-var this
But this outputs html quoted text (so I see HTML and DTML tags in browser,
instead of formatting and variables).
Hmm, looks like a problem I had a few days ago. Maybe
Thanks for the help Ron. This almost works for me. I now have the product
in zopes control panel, but it is broken. (see traceback below)
Is this because my MySQL-Python RPM from your mail is not intalling properly
?
Thanks
Peter
ZMySQLDA Import Traceback
Traceback (innermost last):
File
Seems that because of how my Zope was installed had problems... I copied all
files from /usr/lib/python1.5/site-packages/ to
/usr/local/zope/lib/python/Products/ZmySQLDA and all was sweet.
Thanks for your help Ron!
Peter
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL
Hello,
Can you help me ???
I have one page with a "form", in this page I have an "OnClick" who open a
new page who have some informations and when I "Submit" (I think that I must
use a form also in this page to send the informations to the first page), I
want to receive the informations on the
Meeting Maker Webmaster wrote:
One last question ;-) I've seen in this mailing list that Squishdot will
not work with Zope 2.2.0 until version 0.4.4... when is this version
planed? I've tried to install Squisdot on the Zope 2.2.0b3 server and I get
the same problem as with my "Job_Board"
When I try to add a date-property and want to leave the Value-field
empty i get the following error:
Error Type: Invalid Date-Time String
Error Value:
When I write a date in the Value-field I can add the date. Is this a
bug? Why cant I add a date with no default value? In several howtos they
Ah I saw that was a known bug. Forget this post :)
Peter Arvidsson skrev:
When I try to add a date-property and want to leave the Value-field
empty i get the following error:
Error Type: Invalid Date-Time String
Error Value:
When I write a date in the Value-field I can add the date. Is
Hi,
I have a ZClass based on Folder. Contained within this is a DTML Method,
index_html. This is mapped to the 'View' view and renders the
appropriate object contained in itself depending on soem logic.
All, is well if I access the object through a URL, the page is rendered
as expected.
Hi,
i have a DTML-Method that adds a subfolder to a folder. I want to give
anonymous users the permission, to add a Folder by using this
DTML-Method. I added the Proxy-Role "Manager" to this DTML-Method, but
anonymous users still can't use it - everytime they get a
"You are not authorized to
Try using an argument other than 'login'
Change it to something else because login could easily be a reserved
keyword.
To test this simply change it to xlogin or something similar.
Let me know if that helps.
-Andy
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Ron Bickers wrote:
Actually, I just realized that what you're trying to compile is the MySQLdb
that comes with the DA. The DA itself is written in Python, and doesn't
need to be compiled.
Aargh, if I had know this yesterday! Thanks.
Also it was a little late yesterday when I started
I am trying to create wizards but as usual I am running into problems..
To forward input to the next step I learned in the howto "Wizards made
easy" that this was the way to do it:
dtml-in "REQUEST.form.items()"
input type="hidden" name="dtml-var sequence-key" value="dtml-var
sequence-item"
Hi,
1st question:
I'm currently creating a ZClass based product which includes some external
methods.
If I want to distribute this product, do I have to distribute my product
AND my external methods for it to work correctly elsewhere, or just
distributing the product is sufficient ?
2nd
Richard Moon wrote:
I don't think GUF works in its current release, or maybe the set-up
instructions are incomplete. I used it before and it was ok but I tried the
latest release and had the same problem as you. I reported it to GUF's
author but didn't get a reply.
I just added a SQL user
One reply I get from Mario:
Mario Premke wrote:
I remember I had the same problem.
In GUF's acl_user folder I gave the special_role
the same permissions as the anonymus role.
As far as I remember that did it ...
--
César A. K. Grossmann
[EMAIL PROTECTED]
http://members.xoom.com/ckant/
Create your own image file. Use anything you would like.
--
Pamela Crosby
Technical Writer mailto:[EMAIL PROTECTED]
Digital Creations http://www.digicool.com
Publishers of Zope http://www.zope.com
-Original
Hi,
I cannot authenticate users with the following method:
dtml-in "sql_get_password(xlogin=username)"
dtml-if "password==_['sequence-item'].real_password"
dtml-return "_.int('1')"
/dtml-if
/dtml-in
dtml-return "_.int('0')"
The ZSQL-Method works as well as the
Dieter,
Thanks, that worked like a charm.
I find I am really struggling trying to learn the syntax and variables for
the various commands. Would an understanding of Python help me to understand
the Zope
commands better and is there good documentation for Python that does not
expect the reader to
Hello,
Im trying to access a postres database from within zope. I have
ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2.
The connection string Im using is something like:
user=thierry host=myhost dbname=test port=5432 password=mypassword
When I try to add a Z PoPy Database Connection with the
On Fri, 7 Jul 2000, Jonathan DESP wrote:
I'm getting a problem, I don't understand what it is, my friend and me
didnot find the problem too.
[]
data record exceeds transaction record at 34224435
This may not be of any help, but I got this kind of error when
I was trying to build a Zope
I am trying to create a automated drop down list, and here is my code
so far:
form NAME="BOOGER"
SELECT name="myList"
dtml-in "objectValues(['DTML Document'])"
OPTION value='dtml-var id'dtml-var title/OPTION
/dtml-in
/SELECT
/form
I would like to be more specific though and only list files of
Hi,
I'm not sure if you are having the same problem, but when we
built MySQLDA, I found that there are some lines in one of
the configure files that need to be fixed. Did you save the
compile log? (Sorry, but I cannot recall the exact file
that has the problems), but there are three places
At 17:15 10/07/00 +0200, you wrote:
Is it possible (and how) to use the standard ACL
with a user-database behind it ???
Thanks
Mario
Well kind of, in the sense that you can check the user login using ACL in
the normal way and then you can match AUTHENTICATED_USER against your user
database so
Hello Ewald,
Here's a mailing list archive that may help you:
http://zope.nipltd.com/public/lists/zope-archive.nsf/242bb7cc2b2c343d802568a
b003585d4/041159ede9899734802568a700259726?OpenDocument
It helped me with the same problem. Basically, It tells you how to make a
few simple modifications
Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit:
# Im trying to access a postres database from within zope. I have
# ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2.
#
# The connection string Im using is something like:
# user=thierry host=myhost dbname=test port=5432
Howdy Zopistas out there!
I just ran into some kind of administrative problem: my students are
not so willing anymore when it comes to changing links for the third
revision of our website. There are about 200 links to change manually
and they have my full sympathy. Apart from that this
Hello all,
I'm attempting to mirror our Zope site to IIS 5.0 on a W2K Server, and am having
problems with Netscape Navigator. Because the files have no file extension, Netscape
keeps trying to download and save the files to disk, rather than displaying the
content as HTML. I've tried several
Hi all,
Zope 2.2.0 beta 4 has been released - you can download it from
Zope.org:
http://www.zope.org/Products/Zope/2.2.0b4/
This release includes fixes for a number of bugs
found in the beta cycle, including a fix for
the recent database packing issue. It also
contains updated online help
Hi Ragnar !
Ragnar Beer wrote:
I just ran into some kind of administrative problem: my students are
not so willing anymore when it comes to changing links for the third
revision of our website. There are about 200 links to change manually
and they have my full sympathy. Apart from that this
Hi Jake !
Jake LeBeau wrote:
I'm attempting to mirror our Zope site to IIS 5.0 on a W2K Server,
and am having problems with Netscape Navigator. Because the files have
no file extension, Netscape keeps trying to download and save the
files to disk, rather than displaying the content as HTML.
I did a similar thing and when I mirrored it to IIS as static files I
changed the filename by adding .html
You can fix the header to always add the correct content type
(RESPONSE.setHeader('Content-Type', 'text/html'))
- Original Message -
From: "Jake LeBeau" [EMAIL PROTECTED]
To:
On Mon, 10 Jul 2000, Sebastien Douche wrote:
Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit:
# Im trying to access a postres database from within zope. I have
# ZPoPyDA-0.5.tar.gz installed along with PoPy-1.2.
#
# The connection string Im using is something like:
#
Oops of course you are mirroring to a static file that setting a header will
do no good. Damn need more tea to wake me up.
- Original Message -
From: "Andy McKay" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 10, 2000 11:40 AM
Subject: Re: [Zope] Mirroring to IIS
I did a
On Mon, Jul 10, 2000 at 01:42:48PM -0500, Nitesh Dhanjani wrote:
On Mon, 10 Jul 2000, Sebastien Douche wrote:
Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit:
# Im trying to access a postres database from within zope. I have
# ZPoPyDA-0.5.tar.gz installed along
I am trying to get a document title to print out and am having
problems.
As part of my web page I would like to display the title of a
document, and the document id is stored in a variable. But Zope is
interpretting the information in the variable as a string and not as a
document id.
Any
Terry Babbey wrote:
I am trying to get a document title to print out and am having
problems.
As part of my web page I would like to display the title of a
document, and the document id is stored in a variable. But Zope is
interpretting the information in the variable as a string and not
"Henny van der Linde" [EMAIL PROTECTED] wrote:
...Zope forces you often to go to nitty gritty details of HTML
programming.
I think that's a good thing (for me). GUI tools tend to make
you very lazy and often produce horrible HTML (for example Frontpage).
Today's best WYSIWYG editors produce
Eagan hills wrote:
All,
I am working on a new installation of Zope under Red Hat 6.3. When trying to
import any product (Portal Toolkit, Squishdot, KM news etc.), I get an
error - internal server error (500). It seems as if the page isnt there.
There is an import directory under the Zope
LOL Good catch, I was just about to e-mail more questions ;-)
I've been banging my head on it for most of the day, and I think what it comes down to
is - why does netscape have no problem displaying pages from ZServer that have no file
extension, and yet try to save all files from IIS that
Hi Maik,
I've been trying to use the ZMirror product and wget with varying degrees of success.
See my response to Andy McKay for a description of where I am now.
Of course, if I was a real Zopista, instead of a newbie, I would rewrite the ZMirror
product to assign file extensions to its
On Fri, 7 Jul 2000, Dan Narkiewicz wrote:
inside my own python written Zope product... Any help would be.. well...
helpful..
I am not sure if it is a good idea to use a Product in the manner you
describe but in any case:
--- a class definition ---
def FStest(self):
I have a TimeSheet product which is currently utilising the suggestions from one
of the howtos on zope.org, to make the handling of errors a little smarter.
Subsequently my addForm code checks to see if any errors were detected and, if
not, tries to go to the usual _add method. But this fails.
Hi folks,
I wholeheartedly agree that one should learn handcoded html,
if only in order to be able to clean up what the html
editors do that you want to customize. I have found that it
is possible to write very complex files with code warrior or
dreamweaver. From the zope interface, you can
Brian Lloyd wrote:
snip id is sometimes a method (not always though ;-)
This is one of the things on my List Of Evil Things that
should be changed one day in Zope3K :)
RANT type="angry,frustrated"
How about the nasty hacky mess that is DTML?
Some priceless artifacts that need to go:
Chris Withers wrote:
Okay, seriously, DTML is really hurting Zope's chances with a lot of
people/companies. DTML should be easier than, say, creating a Form in
Lotus Notes or writing a component in Mason. That requries, IMHO:
1. Clear definition of when it should be used.
2. A clean, concise
Jonathan DESP writes:
I'm getting a problem, I don't understand what it is, my friend and me
didnot find the problem too.
raise CorruptedTransactionError, message
ZODB.FileStorage.CorruptedTransactionError: C:\Program
Files\WebSite/var/Data.fs
data record exceeds
Hi!
Brian Lloyd wrote:
snip id is sometimes a method (not always though ;-)
This is one of the things on my List Of Evil Things that
should be changed one day in Zope3K :)
RANT type="angry,frustrated"
How about the nasty hacky mess that is DTML?
Some priceless artifacts that need
Jim Fulton wrote:
I suggest that, since this appeared in a code snippit to begin
with, it should have been written as:
blah blah '(_.None,_,foo)' blah blah
I don't format my code like that ;-)
Note that the StructuredText underlining feature is
widely considered a missfeature and
On Mon, 10 Jul 2000 [EMAIL PROTECTED] wrote:
On Mon, Jul 10, 2000 at 01:42:48PM -0500, Nitesh Dhanjani wrote:
On Mon, 10 Jul 2000, Sebastien Douche wrote:
Le Mon, Jul 10, 2000 at 10:49:27AM -0500, Nitesh Dhanjani à écrit:
# Im trying to access a postres database from
Shane Hathaway wrote:
The idea of making an XML compliant DTML has been tossed around
before. It would remove the difference between dtml-var x and
dtml-var "x", since XML allows neither syntax. :-)
I'm not too hot on XML compliancy, but if it makes the problems I
mentioned go away, then
On Mon, Jul 10, 2000 at 05:39:27PM -0500, Nitesh Dhanjani wrote:
On Mon, 10 Jul 2000 [EMAIL PROTECTED] wrote:
On Mon, Jul 10, 2000 at 01:42:48PM -0500, Nitesh Dhanjani wrote:
On Mon, 10 Jul 2000, Sebastien Douche wrote:
Le Mon, Jul 10, 2000 at 10:49:27AM -0500,
:)
I actually rewrote a *ahem* Perl script to do it.
- Original Message -
From: "Jake LeBeau" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 10, 2000 1:45 PM
Subject: Re: [Zope] Mirroring to IIS
Hi Maik,
I've been trying to use the ZMirror product and wget with varying
You must be thinking of this:
dtml-var "index_html.title"
- Original Message -
From: Terry Babbey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 10, 2000 9:04 PM
Subject: [Zope] Document Title
I am trying to get a document title to print out and am having
problems.
As
On Mon, 10 Jul 2000, Chris Withers wrote:
(Who just spent 1/2 hour figuring out how to do a multi-language site in
Zope, and now after 6hrs of trying has given up doing a recursive tree
copy to get the old site into the new structure with a DTML method or
two and is resorting to ugly hacky
This is something I've wanted to see for a long time too. The Portal
Toolkit (http://www.zope.org/Products/PTK) evidently has a "discussable"
mixin class that allows users to add comments to documents. You may
want to check it out. This feature should probably be abstracted out of
the portal
The MessageDialog is cool, but a little sparse, has anyone tried overriding
it with their own or fiddling with it? Im looking at including standard
header and footer in it and not gotten very far.
Thanks.
--
Andy McKay, Developer, ActiveState
http://www.ActiveState.com
Programming
Title: Blank
Hi,
I read all the past message in your mailing lists with the
keyword:exceptions.ImportError in.
I'm getting that problem:exceptions.ImportError
Anyone is able to help me ? You know a way to fix it ? a patch or something
?
Just email me at mailto:[EMAIL PROTECTED]
I'm noticing that our file sizes could be reduced by 10% or
more by trimming trailing whitespace. Is there a way to get
Zope to do that automatically? It would be best if Zope did
it whenever a method was saved.
Thanks in advance,
-Paul
__
Do You
On Tue, 11 Jul 2000, Paul Abrams wrote:
I'm noticing that our file sizes could be reduced by 10% or
more by trimming trailing whitespace. Is there a way to get
Zope to do that automatically? It would be best if Zope did
it whenever a method was saved.
Agreed. I have found that reformatting
RC Compaan writes:
I have a list:
mylist=[('R',31),('I',80),('A',80),('S',23),('E',35),('C',21)]
I want to rebuild the list sorted from high to low on the sequence-item.
When i call dtml-in mylist sort=sequence-item reverse the list gets
sorted on the sequence-key not the
Hello everyone,
I am writing my own Python Product and it is going well so far, except that
some of the default permissions will not transfer.
I have an ObjectManager object that contains another ObjectManager-based
object. The first inherits the permissions of Zope just fine, but in the
On Wed, 05 Jul 2000 19:42:38 +0300, Itamar Shtull-Trauring
[EMAIL PROTECTED] wrote:
Shane Hathaway wrote:
The place where this is needed most (IMHO) is for ZClass factories. So
there needs to be a way to create meta type filters through the Web.
Yes, but in Python products too, where you
Hello!
Can anybody tell me, what the 'dp=1' attribute in the _delObject methods of
the ObjectManager (OFS/ObjectManager.py) and ZClassMethodsSheet
(ZClasses/Method.py) Class are for?
I haven't found any method call, where dp is set and the methods themselves
don't use it aswell.
I would like to
Can anybody tell me, what the 'dp=1' attribute in the
_delObject methods of
the ObjectManager (OFS/ObjectManager.py) and ZClassMethodsSheet
(ZClasses/Method.py) Class are for?
I haven't found any method call, where dp is set and the
methods themselves
don't use it aswell.
I would like
Hi,
I guess this should be a feature request for the collector but I thought
I'd see what other people thought first...
I'd really like to be able to override methods in an instance of an
object. Examples I can think of are Squishdot and the Tracker.
In Squishdot, or any ZCatalog for that
Monty Taylor wrote:
Make a folder that contains the overridden methods and call things
through the context of that folder.
Neat trick :-)
We love acquisiton, but it won't quite do it :(
The default index_html will get called, unless you put /folder/ on the
end of your URL. which is horrible :(
Hi,
I'm trying to do a tree walk and copy with:
dtml-in objectValues
dtml-call "REQUEST['where'][-1].manage_addFolder(id)"
Created dtml-var id in dtml-var "REQUEST['where'][-1].id"BR
dtml-if "meta_type=='Folder'"
dtml-call "REQUEST['where'].append(this())"
dtml-var iterate
dtml-call
Chris Withers wrote:
Monty Taylor wrote:
Make a folder that contains the overridden methods and call things
through the context of that folder.
Neat trick :-)
We love acquisiton, but it won't quite do it :(
The default index_html will get called, unless you put /folder/ on the
end of
From: Chris Withers [EMAIL PROTECTED]
dtml-call "REQUEST['where'][-1].manage_addFolder(id)"
Error Type: TypeError
Error Value: read-only character buffer, Python Method
Looks like the 'id' of something along the line is a method rather than a
string. Try "_.getitem('id', 1)".
Cheers,
Evan,
Thanks, that worked...
Evan Simpson wrote:
From: Chris Withers [EMAIL PROTECTED]
dtml-call "REQUEST['where'][-1].manage_addFolder(id)"
Error Type: TypeError
Error Value: read-only character buffer, Python Method
Looks like the 'id' of something along the line is a method
Chris Withers wrote:
Can someone please tell me why folder.id is a method and
everything-else.id is a string?
Sorry, that should be folder.id is a string and everything-else.id is a
method.
cheers,
Chris
___
Zope-Dev maillist - [EMAIL PROTECTED]
At 04:40 PM 7/9/00 -0500, Steve Spicklemire wrote:
Wow.. alright. I think I need "ZPatterns for Dummies" or maybe there
needs to be a disclaimer "ZPatterns are NOT for Dummies." ;-)
I've pretty much given up on Sheets for now. Nothing I've tried
has actually worked. I thought maybe I needed to
At 10:02 AM 7/10/00 -0400, Shane Hathaway wrote:
Phillip,
What if the management interface for specialists provided a way to
manipulate, or at least view, the table of virtual objects (or, in
ZPatterns-speak, DataSkins)? Wouldn't that make ZPatterns more
accessible?
Probably. The sticking
On Fri, 7 Jul 2000, Brian Lloyd wrote:
Are you calling:
Globals.default__class_init__(MyBasketClass)
on your Basket class? This is (poorly documented but)
necessary for permissions declared in __ac_permissions__
to be correctly initialized.
Poorly? grin
Only three classes seem to use
Interesting commentary from the Interfaces Wiki:
http://www.zope.org/Members/michel/Projects/Interfaces/ObjectM
anagerItem
"""Some old objects provide id methods that return ids. This practice
should be avoided for new objects. We can't change the old objects for
backward compatability
"Phillip J. Eby" wrote:
At 09:22 AM 7/10/00 -0400, Shane Hathaway wrote:
The new security machinery actually provides a different way to solve
this problem. Since we now have an execution stack, we can limit that
stack, causing an exception to be thrown rather than letting it
overflow
At 03:07 PM 7/10/00 -0400, Shane Hathaway wrote:
"Phillip J. Eby" wrote:
Understood. I'll try to keep that use case in mind. Keep in mind,
however, that being able to create a LoginManager is a pretty risky
business in a portalish environment - you could potentially get access to
At 02:29 PM 7/10/00 -0400, Shane Hathaway wrote:
I decided to try out this idea. It turned out to be a cinch! It
doesn't restrict the manage_* methods yet; I'll get to that after I get
some feedback. Thoroughly untested except on my box; use at your own
risk, etc. :-)
Jim,
Phillip has an idea that could make life simpler for Zope newbies.
This would be intended for the next major Zope release.
"Phillip J. Eby" wrote:
Well, I'm hoping you'll take a look at my Collector suggestion for a new
Zope feature. :) Specifically, extending the "access" file to
FYI, I entered a Collector feature request for this over the weekend; I
classified it as "somewhat important/future", IIRC. It mentions the "set
up two accounts" concept you describe below, and I think there might be
some other notes as well.
At 05:07 PM 7/10/00 -0400, Shane Hathaway wrote:
Chris Withers writes:
I'm trying to do a tree walk and copy with:
dtml-in objectValues
dtml-call "REQUEST['where'][-1].manage_addFolder(id)"
Created dtml-var id in dtml-var "REQUEST['where'][-1].id"BR
dtml-if "meta_type=='Folder'"
dtml-call "REQUEST['where'].append(this())"
Wetried to install zope using its tar.gz file
and it created a lot of files with non-default users and with very permissive
permissions on a linux box (like 777 permissions for many files).
This is a HUGE security hole. We couldn't install
the RPMs files on our webserver. Is there any
Which files? Know that if you untar as root, the files will be 'owned'
by whoever tarred it up on our side. Untar it as a normal user. Reset
the permissions of the ones you find too permissive. Then let us know
so we can change the distribution.
-Original Message-
From: Leonardo
On Mon, 10 Jul 2000, Chris McDonough wrote:
Which files? Know that if you untar as root, the files will be 'owned'
by whoever tarred it up on our side. Untar it as a normal user. Reset
the permissions of the ones you find too permissive. Then let us know
so we can change the distribution.
Using gnutar, untarring as the root user preserves ownership on
expansion by default. Not sure if FreeBSD uses gnutar (I imagine not),
but this is the case with gnutar under Linux. I think this is what
happened to him... he said he could not use the RPM release and was
working with the source
RC Compaan writes:
I have a list:
mylist=[('R',31),('I',80),('A',80),('S',23),('E',35),('C',21)]
I want to rebuild the list sorted from high to low on the sequence-item.
When i call dtml-in mylist sort=sequence-item reverse the list gets
sorted on the sequence-key not the
87 matches
Mail list logo