Hello,
I use virtual attribute access to provide access to my SQL database.
However, I want to use the Rack.newItem facility to create new records
in the database.
But it fails because in virtual mode, an item always exists.
This patch solves the problem, at least for me
--- Rack.py.orig
(URL:
http://www.zope.org/Members/michel/Projects/Interfaces/RestrictedCreation)
Restricted Creation of Objects
The problem - certain types of objects should not be added except in certain
places or with certain restrictions. For example, we may want to make sure
Laundry objects are only added
Are there (or better yet, what are) any potential problems here? My gut
feeling was that it wouldn't work, but you can at the very least add objects
in instances of the ZClass - deleting and renaming don't work though.
--
Itamar S.T. [EMAIL PROTECTED]
Fingerprint = D365 7BE8 B81E 2B18 6534
Hi!
Where can i find S_I_M_P_L_E example of using document templates with
zope/python. I have this external method, wich return several variables from
object class. I want to embed to results in DTML page.
The method is called from Zope by HTML form with 3 input attributes. Right
now i have
Jarkko Veijalainen wrote:
Hi!
Where can i find S_I_M_P_L_E example of using document templates with
zope/python. I have this external method, wich return several variables from
object class. I want to embed to results in DTML page.
The method is called from Zope by HTML form with 3
Itamar Shtull-Trauring wrote:
I propose a Restricted Creation Interface - when an ObjectManager constructs
it's Add list in manage_main, it first checks with each addable class if
it's instances can be added in this specific ObjectManager.
The place where this is needed most (IMHO) is for
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 have Items that should only go in
specific ItemHolders. This is very common.
On the
Hi,
i have a very important question. Is there a way to search in a
mysql-database with the ZCatalog.
Could i create a temporary file from a table and search it with the
ZCatalog.
If there are any Ideas please tell me.
Thanks, as
___
Zope-Dev
Hi,
I wrote an external method from which I call a ZSQL-method, this runs fine
and returns the correct results, but when I look at the ZODB transactions,
I see that for each call of the method a transaction is recorded. Even
worse, when I make an error in my method, the folder from which I
At 03:12 PM 7/5/00 -0500, Jimmie Houchin wrote:
"Phillip J. Eby" wrote:
[snip]
Peter Coad's design approach (which ZPatterns is heavily based on/biased
towards) emphasizes four major layers of classes in an application:
1) User Interface (GUI, forms, etc.)
2) Problem Domain (the actual
Hi all --
looks like ExtensionClass doesn't recognize/implement the '__radd__()'
protocol. Speculation below; first, a demonstration. Normal case: a
regular class Number that knows how to add itself to other number-like
things:
class Number:
def __init__ (self, n):
self.n =
OK, I am working on a CVS dump from yesterday of Zope2. I am upgrading
from 2.1.6. I did so by making new folder, copying products that I
actually used over, and building Zope, then bringing over the Data.fs.
Oh, and ZEO is there too (Damn that thing is cool!).
And now I have a very weird
I'm looking for a new job where I can continue to use Zope for website
management and applications development.
Contract or full-time.
Silicon Valley California or telecommute.
If you know of any openings, please let me know.
-- Thanks
-- Loren Stafford
[EMAIL PROTECTED]
At 12:01 PM 7/5/00 -0400, Shane Hathaway wrote:
Itamar Shtull-Trauring wrote:
I propose a Restricted Creation Interface - when an ObjectManager
constructs
it's Add list in manage_main, it first checks with each addable class if
it's instances can be added in this specific ObjectManager.
The
At 01:58 PM 7/5/00 +0300, Itamar Shtull-Trauring wrote:
Are there (or better yet, what are) any potential problems here? My gut
feeling was that it wouldn't work, but you can at the very least add objects
in instances of the ZClass - deleting and renaming don't work though.
When you say
At 11:14 AM 7/5/00 +0400, Jephte CLAIN wrote:
Hello,
I use virtual attribute access to provide access to my SQL database.
However, I want to use the Rack.newItem facility to create new records
in the database.
But it fails because in virtual mode, an item always exists.
This patch solves the
Subject carries the question. Anyone tried this yet, or have any
insights about it?
I am considering giving a go this week, thought I'd see if there are any
heads-up notices I should be aware of. :)
Back-to-the-migrations-to-ZEO-ly y'rs Bill
--
"Linux: the operating system with a CLUE...
It's on my list, but I'm not going to get to it for a week or so.
Anthony, building a MountRegistry...
Bill Anderson wrote
Subject carries the question. Anyone tried this yet, or have any
insights about it?
I am considering giving a go this week, thought I'd see if there are any
Thus spake Phillip J. Eby ([EMAIL PROTECTED]):
and when I ask one of my TableInfo instances for their footnote it
comes right out of MySQL! Cool. Now.. I can't seem to figure out how
to *change* the data in the database when the user 'edits' the
Here's some more top-secret documentation...
On 5 Jul 2000, Clinton Roy wrote:
dtml-var notes null="nbsp;"
just doesn't seem to be working.
Hi Clinton,
null is only used in conjunction with fmt, so you would want to
use,
dtml-var notes fmt="%s" null="nbsp;"
If this does not work mail me back.
Thanks,
On Tue, 4 Jul 2000, Rik Hoekstra wrote:
i tried out this but this isnt working out for me. can you point out the
error.
my index_html file is
dtml-var standard_html_header
FORM method=post action=http://localhost:8080/3inet/print
Enter name: INPUT type=text name=valnameBR
INPUT
On Sun, 2 Jul 2000, Dieter Maurer wrote:
Chris Withers writes:
Dieter Maurer wrote:
In Zope, each user has a set of roles.
Any user has the "Anonymous" role. Log-in users may have
additional roles.
I'm not convinced this is true...
The Content Manager Guide (Security,
Hi David,
David Trudgett wrote:
Some questions I have in my mind:
1. I used "raw" and you used "PrincipiaSearchSource()" . The reason I used
raw was because I wanted to be sure that what I got wasn't munged in any
way, and that what I put back reflects what was actually there before.
Hi,
In my site I have folder with subfolders and I would like to generate
a menu to go to those subfolders.
What I have now is:
dtml-in "objectValues()"
dtml-var sequence-key
/dtml-in
which gives emptynes.. I've tried all kinds of combinations, tricks
from the tips and howto's, but
+[ Anders Holmbech Nielsen ]-
| Hi,
|
| when trying to import an object made in 2.1.6 into 2.2b3 i get this
| error. What could be the problem ?
I can't help with the error, but, you can try exporting as XML and
importing the XML. I find this to
In my site I have folder with subfolders and I would like to generate
a menu to go to those subfolders.
What I have now is:
dtml-in "objectValues()"
dtml-var sequence-key
/dtml-in
which gives emptynes.. I've tried all kinds of combinations, tricks
from the tips and howto's, but nothing.
+[ Anders Holmbech Nielsen ]-
| Hi,
|
| when trying to import an object made in 2.1.6 into 2.2b3 i get this
| error. What could be the problem ?
I can't help with the error, but, you can try exporting as XML and
importing the XML. I find this to
+[ Anders Holmbech Nielsen ]-
| +[ Anders Holmbech Nielsen ]-
| | Hi,
| |
| | when trying to import an object made in 2.1.6 into 2.2b3 i get this
| | error. What could be the problem ?
|
| I can't
Stuart Bishop wrote:
or in BasicUserFolder. Either way it should go in the collector.
Issue 1391, or in a slightly different phrasing, Issue 467
cheers,
Chris
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**
Woops, pressed send too soon
In my site I have folder with subfolders and I would like to generate
a menu to go to those subfolders.
What I have now is:
dtml-in "objectValues()"
dtml-var sequence-key
/dtml-in
which gives emptynes.. I've tried all kinds of combinations, tricks
from the
On Wed, 05 Jul 2000, Anders Holmbech Nielsen wrote:
Hi,
when trying to import an object made in 2.1.6 into 2.2b3 i get this
error. What could be the problem ?
brian put out an updated file Lexicon.py which fix the error.
file is attached. make a backup first. copy it to
+[ Anders Holmbech Nielsen ]-
| +[ Anders Holmbech Nielsen
]-
| | Hi,
| |
| | when trying to import an object made in 2.1.6 into 2.2b3 i get this
| | error. What could be the problem ?
|
| I can't
Today I had to role back two days of transactions from my production
site because when I packed the database I was informed of a
CorruptTransactionError.
We are using Zope for an internal knowledge management application
where anyone in the organization can add objects. So I have no way of
hi, there,
i've been using oracle8 with zope succesfully for a while. now my database
programmer came up with a solution for a certain problem, which "we cannot
solve with an easy select statement". he told me, that we are gonna have to
use db-cursors instead.
i must admit that i have heard
Hi all,
I would like to know how to undo the last transaction from a DTML Method and I
have no idea of how I can do that. Help !
Thanks
Frederic
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts
Hello Gregor,
Thanks for the reply. If I read this bug correctly, though, it means the
time is off by one hour. I checked and all my date/time objects get stored
as gmt+1 (which of course is indeed wrong), however, shouldn't the
comparison of the two variables succeed anyway?
Best wishes,
I can't imagine a problem that can be solved by cursors and not by a query.
We have been used PL/SQL (the extension of SQL by Oracle) inside zsql methods
like this:
DECLARE
C_AUX NUMBER;
BEGIN
INSERT INTO IT_GRUPO_INVESTIGACION (
C_GRUPO, D_GRUPO, S_GRUPO, F_INI_VIG, F_FIN_VIG,
"Cary O'Brien" [EMAIL PROTECTED] writes:
It seems as if dtml-in handles lists of pairs specially.
It does, and it is documented.
Where? I even looked through the code in DT_In.py and couldn't
figure out where it handled this special case. This seems
to me like a pretty big gotcha.
I did
Couple of things came up trying to use the current PostgreSQL da
and zope 2.2b3. I am working on a ZClass that lets you define
and create tables in a database, so I needed to execute some
generated sql [1].
1) I couldn't access the query() method of the connection unless
I added our
I'm downloaded the dtml-calendar with the tar.qz. My unzip asks me what to change
the qz to before it will unzip, and i dont know what to change it to. i tried .doc,
.zexp, and left it blank. if u know what it is, tell me.
Frank from Miami
I'm downloaded the dtml-calendar with the tar.qz. My unzip asks me what to change
the qz to before it will unzip, and i dont know what to change it to. i tried .doc,
.zexp, and left it blank. if u know what it is, tell me.
Try .tar.gz
That should make WinZip happy ;-)
Chris
Hello,
I am trying to build an SQL statement in a form, and then pass the
statement onto a Z SQL method, for execution.
something like
form action="search_results" method="get"
input type="text" name="select_statement" value="SELECT name,
phone_number, address FROM black_book WHERE"
On Mon, 3 Jul 2000, Jonathan Desp wrote:
then a problem appear, I mean zope stop, I cannot browse inside zope and
I can't browse inside www.atomasoft.com/etc..
No one here know a patch for that problem ? no one here is smart enough
in zope(because I'm not) for solving that problem ? Here
Hi Rogerio
1)Folders names are directly related to string fields
in a MySQL database which use spaces between words (eg
New York), but folders names don't use spaces (eg
NewYork). How can I skip spaces from database fields to
make them refer to these folders (eg New York --
NewYork)?
I
About a week ago, I asked a question about dcoracle
(Included below). I got one response suggesting that
I not use a cursor. However, I need a cursor to return
several (lots) of rows from the database in one stored
procedure call. I can't do this by adding extra non-cursor
parameters. If
On Tue, 4 Jul 2000, Jerome Alet wrote:
In fact if I give this method a proxy role of Manager then it works fine
if I access directly to this method from my browser. However if I call
this method from inside another dtml method then it seems that the method
loose its proxy role of manager.
[EMAIL PROTECTED] (Rajil Saraswat) wrote:
No isee the rendered page in the browser but i donot see the dtml-var
valname value. it just gives a blank.
is something wrong here.
Weird. Are you absolutely, positively sure that you use the DTML
source you published here? I mean are you sure that
Richard Taylor wrote:
Today I had to role back two days of transactions from my production
site because when I packed the database I was informed of a
CorruptTransactionError.
Did anything else happen previous to this? Did you run out of space
or anything like that?
You should have been
Chris Withers wrote:
Bill Anderson wrote:
Why not put a space in there, after the comma? As in:
(_.None, _, foo)
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
in which case, the '_'s shouldn't
Hi:
I try to use Reportlab lib's with my zope.
In my DTML method i call the python file (External Method) with:
dtml-call "makereport"
All run OK, but i don't find the *pdf file.
Where is my pdf file?
##3
# makereport.py
Im interested in setting up a Zope site for an accountant.
I'd like to have his clients be able to review and submit
information online, but Im concerned about security issues,
such as entering social security #s etc.
I have Zope running with Apache v1.3.x
Does anyone know of any links covering
Kindest!
Have anyone seen problems with international characters in
ZClasses / searches? The problem only arise after the object
is inserted into the object database.. and when viewed after
the search.. when it is inserted into the object database all
seems ok and looks just fine on the screen.
Please excuse these questions, they are not my average question fodder...
A) Are there Zope t-shirts available, or downloadable artwork to make your
own Zope t-shirts?
- this question was actually posed by a co-worker who seems to get his
entire wardrobe from
copyleft and software companies
On Wed, 5 Jul 2000, Tom Scheidt wrote:
information online, but Im concerned about security issues,
such as entering social security #s etc.
I have Zope running with Apache v1.3.x
Zope has pretty strong internal security and delegation ability.
If you couple that with SSL support either
I was looking at the zope site to this mysterious Product that will let me
use my current pages in a zope server, but it seems to have been taken
away. Will it come back or reappear in an update?
Thanks.
--
Joe Hewitt email: [EMAIL PROTECTED]
Linux Coordinator
Washburn
Rajil Saraswat writes:
i tried out this but this isnt working out for me. can you point out the
error.
my index_html file is
dtml-var standard_html_header
FORM method=post action=http://localhost:8080/3inet/print
Enter name: INPUT type=text name=valnameBR
INPUT type=submit
Cary O'Brien writes:
"Cary O'Brien" [EMAIL PROTECTED] writes:
It seems as if dtml-in handles lists of pairs specially.
It does, and it is documented.
Where? I even looked through the code in DT_In.py and couldn't
figure out where it handled this special case. This seems
to
Andy Pahne writes:
i've been using oracle8 with zope succesfully for a while. now my database
programmer came up with a solution for a certain problem, which "we cannot
solve with an easy select statement". he told me, that we are gonna have to
use db-cursors instead.
my question is
Rajil Saraswat writes:
if i donot run the httpd but run only the Zserver then http://localhost
will work?
"http://localhost" would contact port "80".
At least under Unix all ports up to 1024 are priviledged.
Only servers running as root can bind to them.
For security reasons, you probably
Jerome Alet writes:
dtml-in "ZopeFind(this(), obj_metatypes=['Folder'])"
dtml-var id - dtml-var title
/dtml-in
gives me the following error:
"""Unauthorized
You are not authorized to access id."""
If I set a proxy role of manager to this dtml-method that
I am a new user to Zope and I'm trying to pass data that has been
entered into a form (either through GET or POST) into another
object. This object calls a z sql method to insert the form data into
the database. So far, the only way I've found to pass data to the
sql is to define arguments
Hello,
Is there an expression which can be used to exclude index_html from the find items to
zcatalog step in populating a catalog?
Thank you,
Rick
--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy.
___
Zope maillist - [EMAIL
Hi Marco,
From: Marco Mariani [mailto:[EMAIL PROTECTED]]
Subject: Re: [Zope] File referencing and LocalFS
foldername = string.join(colname, '')
using a "blank" ('') between each string, in other words, with no
delimiter.
Maybe you meant
foldername =
Look at the list archives (keyword WorldPilot) there is a patch to apply to
a .py file of the product...
It worked for me with courier-imap ... but I still have a bug with folders
(not recognised :( )
Good luck...
- Message d'origine -
De : Charlie Wilkinson [EMAIL PROTECTED]
À :
On Wed, Jul 05, 2000 at 01:31:56PM -0800, [EMAIL PROTECTED] wrote:
I am a new user to Zope and I'm trying to pass data that has been
entered into a form (either through GET or POST) into another
object. This object calls a z sql method to insert the form data into
the database. So far,
In my last post i search for help concerning to the use of the libs Reportlab in to
Zope environment. I make some research in Reportlab mailing list and Osmin Lazo
(Canada) suggests my to use the following buffer class
# Buffer Class
class
[...]
I am having trouble with a non standard download method. I want to provide
a download link to a file, but not the standard one, because I would get
the id as the filename. The id is a random value and thus not suitable for
the customer. The real filename is saved in the title
I was looking at the zope site to this mysterious Product that will let me
use my current pages in a zope server, but it seems to have been taken
away. Will it come back or reappear in an update?
Is this what you're looking for?
http://www.zope.org/Members/jfarr/Products/LocalFS/
Joel
Hi,
Oleg Broytmann wrote:
On Tue, 4 Jul 2000, Pieter Claerhout wrote:
I want the external method to return this in a list, where I can iterate over
using the
dtml-in tag, so that I can reference the different fields in each record with a
name.
What should the list look like so that
hi ,
I am try to setup a cookie based authorization system(learnt from my perl
dyas). i dont know much of sql, so after reading thru ZSql guide, i could
build up a list of my users login and passwords. If i query the database
and test it the result get printed on screen. How do i put up queried
I have a list (I think) created this way:
(date = '31-DEC-1999')
dtml-call "REQUEST.set('MyList', _.string.split(date, '-'))"
so now REQUEST['MyList'] should contain 3 elements:
31 DEC 1999
How, in dtml, do I say "give me the value of the 1st element of MyList" or
the second or third.
I've
Hi all,
Ok so I have an object, I have many properties persisting on the object
using the wonderful PropertyManager. But I want to persist a dictionary.
This isn't an option for the PropertyManager. I added a dictionary into the
object just by adding the line: _map = {}
But it only persists
Unless I'm overlooking something here, you can just use the form variables
(e.g., dtml-var formVarName), whether POST or GET, in the ZSQL Method
itself. You'll need to include the variable names in the arguments list of
the ZSQL Method, but that's it.
ZSQL Methods are explained (fairly well in
On Wed, Jul 05, 2000 at 04:52:44PM -0700, Andy McKay wrote:
Ok so I have an object, I have many properties persisting on the object
using the wonderful PropertyManager. But I want to persist a dictionary.
This isn't an option for the PropertyManager. I added a dictionary into the
object just
I'm looking for a new job where I can continue to use Zope for website
management and applications development.
Contract or full-time.
Silicon Valley California or telecommute.
If you know of any openings, please let me know.
-- Thanks
-- Loren Stafford
[EMAIL PROTECTED]
1)Folders names are directly related to string fields
in a MySQL database which use spaces between words (eg
New York), but folders names don't use spaces (eg
NewYork). How can I skip spaces from database fields to
make them refer to these folders (eg New York --
NewYork)?
From: "Montagne, Michael" [EMAIL PROTECTED]
I'm very excited about learning Python and Zope. I'm a win98 user and
just
today upgraded my service with my ISP to host my web page from home.
Congratulations on becoming an internet host provider.
I hope you have a firewall in front of your PC
[EMAIL PROTECTED] wrote:
I have a list (I think) created this way:
(date = '31-DEC-1999')
dtml-call "REQUEST.set('MyList', _.string.split(date, '-'))"
so now REQUEST['MyList'] should contain 3 elements:
31 DEC 1999
How, in dtml, do I say "give me the value of the 1st element of
78 matches
Mail list logo