I need to do initialize some properties of new instances of a DataSkin
subclass - ASPAccount. However, I can't put this in __init__ since the
object hasn't been stored at that point.
Doing self.__dict__['name'] = 'Rincewind' seems kinda ugly. Maybe newItem
should by default call a function
Hello,
is it possible for a single method, under Zope 2.1.6, to have several
permissions? ie
__ac_permission__ = (
('edit my data', 'edit_data'),
('edit others\'s data', 'edit_data'),
)
I have the scenario where a user can edit *its* data but not other
users's data, unless he has a
On Wed, 19 Jul 2000, Jephte CLAIN wrote:
I have the scenario where a user can edit *its* data but not other
users's data, unless he has a special role. however, the method used to
edit one's data is the same.
So I make sure inside the edit_data method that the user has the
adequate
(ZPatterns 0.4a5, Zope 2.2.0) If an agent raises an exception, you don't get
to see the traceback. Instead, the object is simply not added (if the
exception was in _objectAdded, donno what happens in _objectChanged). This
makes debugging agents basically impossible...
--
Itamar S.T. [EMAIL
Chris Withers wrote:
"Phillip J. Eby" wrote:
Maybe, maybe not. I think perhaps the most compelling argument from
Digital Creations' viewpoint for having an expanded "access" file might be
the simplification of the setup process for customers. And it would also
make it easier to:
On Wed, Jul 19, 2000 at 04:57:12PM +0900, Brian Takashi Hooper wrote:
Hi Zopistas,
For anyone that might know:
Is there a particular reason that the User-Agent header is not part of
the request data that ZServer sends in the environment to ZPublisher?
It looks like the user agent can
"Phillip J. Eby" wrote:
Doing self.__dict__['name'] = 'Rincewind' seems kinda ugly. Maybe newItem
should by default call a function on newly created objects, say __init? I
don't want to have to subclass Specialist (or in my case, LoginManager) each
time I want to this, since it's a *very*
At 05:41 PM 7/19/00 +0300, Itamar Shtull-Trauring wrote:
class ASPAccount(LoginUser, MemberMixin):
def __init__(self, id, title=''):
LoginUser.__init__(self, id)
self.__dict__['_currentPayment'] = None
self.__dict__['debt'] = Payment.Debt(0.0)
In trying to find the "Quorum Based Replication" stuff I've found that
we have two ZEO wikis.
http://www.zope.org/Products/ZEO/Wiki/FrontPage
http://www.zope.org/Wikis/ZEO/FrontPage
Bleah.
Chris McDonough
Digital Creations
Publishers of Zope - http://www.zope.org
At 10:15 AM 7/19/00 -0400, Shane Hathaway wrote:
Chris Withers wrote:
"Phillip J. Eby" wrote:
Maybe, maybe not. I think perhaps the most compelling argument from
Digital Creations' viewpoint for having an expanded "access" file
might be
the simplification of the setup process for
At 11:09 AM 7/19/00 -0400, Shane Hathaway wrote:
Patch opportunity, perhaps? :) Ty and I would do it, no problem. Heck,
I've been tempted to do it as a LoginManager function, since Zope doesn't
pay attention to anything past the first line of the "access" file...
We would be most
At 12:50 PM 7/19/00 -0400, Shane Hathaway wrote:
"Phillip J. Eby" wrote:
At 11:09 AM 7/19/00 -0400, Shane Hathaway wrote:
Patch opportunity, perhaps? :) Ty and I would do it, no problem.
Heck,
I've been tempted to do it as a LoginManager function, since Zope
doesn't
pay attention to
Hello,
Should I call default__class_init__ on all of my Python products that care
about permissions? Or are there some times when it is not required?
--Jeff
---
Jeff K. Hoffman 704.849.0731 x108
Chief Technology Officer mailto:[EMAIL
Shane Hathaway wrote:
I have an idea: the _objects attribute of ObjectManagers could include
a "configurable" flag, which would tell _checkId that the object can be
overridden.
Shane,
Is this what became the ConfigurableInstances thing at:
Chris Withers wrote:
Shane Hathaway wrote:
I have an idea: the _objects attribute of ObjectManagers could include
a "configurable" flag, which would tell _checkId that the object can be
overridden.
Shane,
Is this what became the ConfigurableInstances thing at:
[EMAIL PROTECTED] writes:
How hard would it be to add more of the called URL to the traceback?
... traceback ...
Great, I know that I have not put product_number in as a cookie or a hidden
value, and it could not be found by acquisition. It failed in rendering
index_html. But
Erik Enge wrote:
call, it won't redirect. So you should be able to achieve the same
results just by invoking manage_addImage without including the REQUEST
object.
But I have to pass something with the REQUEST, or else it won't add the
image, right?
This is the problem we've
Chris Withers wrote:
Why I'm asking is 'cos it'd be really nice not to have to keep
re-writing UI when there's perfectly good stuff available in the
management interface, things like add forms, edit forms, etc...
However, if you call these from anywhere else, they dump you in the
Steve Alexander wrote:
The __call__ method is what gets invoked when you call the method,
either through the magic of dtml-var Catalog or with dtml-var
"Catalog(client, namespace, args*)".
Now you see, this is what confuses me...
dtml-var dtml_method renders that method, implying in my mind
Chris Withers wrote:
Dieter Maurer wrote:
What is needed is a new way of installing Zope stuff for the following
categories:
1. Python Base Products (Like ZPatterns, PTKBase and TrackerBase)
2. Instantiatable Products (like TinyTables, Squishdot and Tracker)
3. Interface
Bill Anderson wrote:
I believe he is talkin gabout the __init__ function checking to see if
the .zexp has been imported, and if not, importing it for you. It's an
idea I have kicked around, but haven't tried yet.
IIRC, the 'Distribution' tab creates all this for you...
It creates a binary
--On Tuesday, July 18, 2000 12:00 PM -0700 [EMAIL PROTECTED] wrote:
Message: 15
From: gustavo [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Organization: elipse
To: [EMAIL PROTECTED]
Subject: [Zope] Newbie: How to create a Oracle connection (DCOracle)
Date: Tue, 18 Jul 2000 15:23:06
Hello all:
Trying to do a simple thing as creating a document and then adding a
property with an DTML method, found that the following code does not
work, it comes up with a password request (all security settings are at
defaults):
dtml-call
If you're doing little or nothing in the way of Python development in
base classes (e.g. you're doing all of your development in the instance
or in ZClasses), you may want to take a look at ZEO
(http://www.zope.org/Products/ZEO). Setting up the ZEO "storage server"
overseas and using a local
On Wed, 19 Jul 2000, ethan mindlace fremen wrote:
HTML, are generally beyond the purview of zope documentation.
The standard in this case is HTTP, where Basic Authentication is
defined:
http://www.cis.ohio-state.edu/htbin/rfc/rfc2068.html
Little fix: rfc2616 obsoletes this.
There
I have a very anoying problem...
I have created a news-product and have several news-objects. Now I want
to change the properties of a news-object. This is my code for that:
dtml-with "newsEntries"
dtml-call "_[objId].propertysheets[1].manage_editProperties(
How can I make queries (something like ad hoc?) to the ZODB besides iteration? If
iteration is the only option, how to go about it? Such as how to iterate through files
in a folder?
Thanks
Dirksen
___
Zope maillist - [EMAIL PROTECTED]
You need to install the ZPattern package to Zope. You can get it at
Zope.org.
After that it should work fine
/Mathias Bengtsson
--Hi there
--I tried to install LoginManager 0.8.6 owith Zope 2.1.6 but that
failed. Zope
--reports:
--LoginManager Import Traceback
--Traceback (innermost last):
--
hi *,
i read with much interest this thread about ZBabel, because
it seems to do something like the Translator product.
Suppose web site in source language has something like this:
'Click A href="{fieldX(someVar.A)}"here/A, for {fieldY(someVar.B)}'
With suitably horrific DTML
Hi folks,
I tried to create a full text search for my existing site. All went fine:
I can search my whole site's document contents (via PrincipaSourceSearch)
and titles (using 'or' as in advanced zcatalog searching how-to).
The problem I have at the moment is that Zope only searches in
At 9:38 am +0800 19/7/00, Bak @ kedai wrote:
On Wed, 19 Jul 2000, Tony McDonald wrote:
Hi all,
I think the time has come to bite the bullet and change our
authentication engine to work in line with Zope 2.2 and above.
UserDB-1.2 seems to have some problems with it (see my message
Jonathan Desp wrote:
I did it, and you still can see the sentences --
http://www.atomasoft.com/asdf.asfd
Did you restart Zope after you made the change?
Chris
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**
Jonothan Farr wrote:
There's a much cooler and more elegant solution in the pipe for 2.2.
http://www.zope.org/Members/4am/DTMLWiki/NamedDTMLInLoop
I don't think this landed for 2.2...
Chris
___
Zope maillist - [EMAIL PROTECTED]
- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Jonathan Desp" [EMAIL PROTECTED]
Cc: "Nick Garcia" [EMAIL PROTECTED]; "zope zope zope" [EMAIL PROTECTED]
Sent: Wednesday, July 19, 2000 5:20 AM
Subject: Re: [Zope] http://www.atomasoft.com/yahoo-yes!.something
Jonathan
Chris McDonough wrote:
There is no generic diff or merge facility for two arbitrarily modified
Data.fs files.
Perhaps Zope or ZEO could do Lotus Notes - style replication at some
point in the future?
cheers,
Chris
___
Zope maillist - [EMAIL
Is products treated in a different way in 2.2 final than in 2.1.6?
When I restart Zope all instances of my (and some imported) products
become broken because it cant find the product it is an instance of.
963996281 (This object from the unknown product is broken!)
I have compared with Zope
Hi all,
Anyone know if there is any good tutorial for date time format ? Like
abstract the day or month or year in a ZopeTime string.
Please help.
Cheers
Wai
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**
At 12:43 pm +1200 19/7/00, Graham Chiu wrote:
In article v0422081ab59a36ddacad@[128.240.198.13], Tony McDonald
[EMAIL PROTECTED] writes
Can anyone who's using an SQL based authentication system with Zope 2.2
successfully please let me know which one you used and how you did it?
What are the
Hi :)
I may say something idiot, but...
Did u try to change the proxy roles of the method which call the fonction
manage_editProperties?
(in case of: to do it, edit your method and choose proxy at the top of the
window), u can edit the role of your method.
Piotr.
Peter Arvidsson wrote:
I
At 5:46 pm +0800 19/7/00, [EMAIL PROTECTED] wrote:
Hi all,
Anyone know if there is any good tutorial for date time format ? Like
abstract the day or month or year in a ZopeTime string.
as if by magic
http://www.zope.org/Members/AlexR/CustomDateFormats
hth
tone
--
Dr Tony McDonald,
[EMAIL PROTECTED] wrote:
Anyone know if there is any good tutorial for date time format ? Like
abstract the day or month or year in a ZopeTime string.
See the Zope Quick Reference or the DTML Reference
cheers,
Chris
___
Zope maillist - [EMAIL
Hi
Thanks for the tip. I gave the method the correct roles but unfortunatelty the
problem still exists.
Peter
Pierre Rougier skrev:
Hi :)
I may say something idiot, but...
Did u try to change the proxy roles of the method which call the fonction
manage_editProperties?
(in case of: to
On Tue, 18 Jul 2000 16:08:48 -0600, Bill Anderson [EMAIL PROTECTED]
wrote:
I might be reading more into his words than was intended, but I think
this demonstrates the problem. Distributing multiple requests for one
section across multiple servers is (what I consider to be)
undesirable.
You
Actually, there is a proposal on the table for something like this in a
Wiki I can't find going by the name of "QuorumBasedReplication"
-Original Message-
From: Chris McDonough
Sent: Wednesday, July 19, 2000 9:51 AM
To: 'Chris Withers'; Chris McDonough
Cc: 'Brenton Bills'; [EMAIL
I'm trying to use the HTMLcalendar.py as an external function. The
supported files are these:
import string, time
from HTMLcolors import *
from HTMLgen import SimpleDocument, TableLite, TD, TR, Font, Name, H,
Center, Href
from types import IntType
from calendar import day_name, month_name,
Hello everybody !
I'd like to have some explanations about the "define permisions" view and
the permission mappings in zclass. Maybe something exists in the zope
documentation, but I haven't found anything. Thank you for helping.
Nathalie Bernier
*
Développeur
I installed Zope 2.2 for Solaris 2.6 on Solaris 2.7.
After starting an accessing as superuser I wanted to add an object e.g.
a folder.
I couldn't add any kind of object, while getting messages like
Zope Error
Zope has encountered an error while publishing this
resource.
Thats what I did .. same problem.
However when I installed a new 2.2 final and did exactly the same (same stuff, same
permissions) then it worked. There must be some problem with the upgrading...
Peter
Pierre Rougier skrev:
Hi
Just to see... try to give all the proxy roles to your
I have a method that looks through "objectValues". Using "hasattr" and
"getattr" I can see the variables contained in the object.
How do I get the values generated from an object's method in a similar
fashion?
For example:
def dj_experince_statistics(self):
"""
"""
Everytime I think I am beginning to understand I try to do something
new and wham! It won't work for me.
I have a dtml-document that I have a list of courses for a college
program. I would like to list the courses one item at a time checking
the 8th character to see if it is a '-' so I know if
days_mixing = getattr(i, 'mixing_for')
a = days_mixing()
-Original Message-
From: ed colmar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 19, 2000 11:09 AM
To: [EMAIL PROTECTED]
Subject: [Zope] looping through objectValues, how to get methods?
I have a method that looks
Andreas Rippel wrote:
I couldn't add any kind of object, while getting messages like
...
Error Type: SuperCannotOwn
Error Value: Objects cannot be owned by the superuser
That's because in Zope 2.2.0, you can't create objects as the superuser.
You'll have to create a
At 16:41 19-7-00 +0200, Andreas Rippel wrote:
I installed Zope 2.2 for Solaris 2.6 on Solaris 2.7.
After starting an accessing as superuser I wanted to add an object e.g.
a folder.
I couldn't add any kind of object, while getting messages like
Hi,
First you have to create another user and give
On Wed, 19 Jul 2000, ed colmar wrote:
I have a method that looks through "objectValues". Using "hasattr" and
"getattr" I can see the variables contained in the object.
How do I get the values generated from an object's method in a similar
fashion?
For example:
if
Hi Ed :-)
StarRave marches on I see...
I'm assuming mixing_for is a method?
if hasattr(i, 'mixing_for()'): #try to get
mixing_for() method
days_mixing=getattr(i,'mixing_for()')
in which case the above should be:
if
I want to use calendar, I see it on screen but I can't use it because, I
think that I have a problem to install all of calendar like the external
method (I can't istall it, of course i'm not a Python programmer)
Can you tel me How Can I use the "Calendar" ???
Thank you a lot.
Hi Vincent !
Vincent Maton schrieb:
Hello !!!
can you tell me how can I use the "cookies"
Just go to the following page:
http://zdp.zope.org/portals/developers/sessionmanagement/cookies
If you find another resource that we have overlooked, please
add it yourself on this page. People can
Hi,
does anybody know a possibility to change the identity during a browser
process,
without killing all clients and logging in again?
Thanks
Andreas
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No
[AL] If you do find it, please pass on a strong recommendation to checkout
the Coda file system included in FreeBSD. Coda has a LOT of research on how
to do this stuff that would be relevant to "Quorum Based Replication".
Sorry, I just noticed this message in passing and cannot follow up myself.
In dtml:
raise Unauthorized
You are unauthorized.
/raise
If you enter a new valid username/password combo in, you'll be validated
and your identity will be changed.
If you cancel or enter an invalid username/password combo, you'll still
be logged in as whomever you started with.
Hi all,
I created a ZClass. Automaticly, Zope has created a new Permission called
"Add MyZClass". I activated this Permission for a role called "simple user".
But, when a user connected has a "simple user" try to add an object from
"MyZClass", he can't. Zope return an error... Is there
any
Toby Dickenson wrote:
On Tue, 18 Jul 2000 16:08:48 -0600, Bill Anderson [EMAIL PROTECTED]
wrote:
I might be reading more into his words than was intended, but I think
this demonstrates the problem. Distributing multiple requests for one
section across multiple servers is (what I
The DTML User Guide has an "Appendix A" that shows lot's of options, but no
examples. Anyhow, see:
http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.18.html
You can use these like so:
dtml-var ZopeTime fmt=="%Y/%m/%d"
dtml-var ZopeTime fmt=="AMPM"
Part of the problem here is that you cannot loop through a string (which is
what a DTML Document returns). You can split the string and loop through
that or more efficiently create a lines property on an object and loop
through that. Something like:
property: Course, type: lines
dtml-in Course
If you manage to find it, would you post a link to it?
Thanks.
-Otto.
Chris McDonough wrote:
Actually, there is a proposal on the table for something like this
in a Wiki I can't find going by the name of "QuorumBasedReplication"
Aha... http://www.zope.org/Wikis/ZEO/QuorumBasedReplication
Jim's heading this up. We had a professor from George Mason University
in here and everything. The whiteboard was filled with scrawlings. :-)
It's definitely something we're interested in.
-Original Message-
From: Otto
Oops! Change those "==" to just single "=".
Too much Python on the brain . . .
-Original Message-
From: Spicklemire, Jerry
Sent: Wednesday, July 19, 2000 12:15 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: Date time format
The DTML User Guide has an "Appendix A" that
Hi,
I was wondering if anybody has some odd jobs for me to do with Zope or
Python. I am availiable for telecommute positions. I have 5 years experience
as a programmer/software engineer and I have recently picked up Zope and
Python, but already I feel like an old pro. Drop me an email
On 19 Jul 2000, at 13:57, Chris McDonough wrote:
Aha... http://www.zope.org/Wikis/ZEO/QuorumBasedReplication
Jim's heading this up. We had a professor from George Mason University in
here and everything. The whiteboard was filled with scrawlings. :-) It's
definitely something we're
Brad Clements wrote:
Aha... http://www.zope.org/Wikis/ZEO/QuorumBasedReplication
Jim's heading this up. We had a professor from George Mason University in
here and everything. The whiteboard was filled with scrawlings. :-) It's
definitely something we're interested in.
I've been
Otto Hammersmith wrote:
Chris Withers wrote:
Chris McDonough wrote:
There is no generic diff or merge facility for two arbitrarily
modified Data.fs files.
Perhaps Zope or ZEO could do Lotus Notes - style replication at some
point in the future?
*droool*
There's that
On Wed, Jul 19, 2000 at 08:47:43PM +0100, Chris Withers wrote:
There's that Python IDE that someone was working on using Mozilla.
Do you mean ZopeStudio? It's the javascript thing that is going to be
Zope's IDE...
No, he's talking about ActiveState's Komodo.
--
Martijn Pieters
|
gustavo writes:
Finally, I installed DCOracle and works fine. But, how to create a Oracle
connection inside Zope? I tried to add a SQL Method and received this warning:
Warning: There are no SQL database connections. You need to add a Zope SQL database
connection before you can use a
Firestar writes:
Haha, thanks for the 'wisdom' cookies:) Here are the last two lines of the
traceback:
File /usr/local/Zope-2.1.6/lib/python/OFS/Application.py, line 249, in
__bobo_traverse__
(Object: ApplicationDefaultPermissions)
File
Manuel Schulte writes:
The problem seems to be that the catalog will not update
after I Input a value that the catalog has not yet seen for a particular
field.
Maybe, you are hit by one of the catalog/lexicon bugs.
Look in the archives or the collector
Peter Arvidsson writes:
Is products treated in a different way in 2.2 final than in 2.1.6?
When I restart Zope all instances of my (and some imported) products
become broken because it cant find the product it is an instance of.
Did you read the Zope 2.2 upgrade information?
To narrow
Jonathan Desp writes:
I did it, and you still can see the sentences --
The debug mode adds the traceback.
The other "sentences" (?) are (usually) generated by
"standard_error_message".
Unfortunately, there are a few exception (like "Resource not Found")
that are build into Python code (sigh).
michael montagne writes:
I'm trying to use the HTMLcalendar.py as an external function. The
supported files are these:
import string, time
from HTMLcolors import *
from HTMLgen import SimpleDocument, TableLite, TD, TR, Font, Name, H,
Center, Href
from types import IntType
from
Erich Seifert writes:
I tried to create a full text search for my existing site. All went fine:
I can search my whole site's document contents (via PrincipaSourceSearch)
and titles (using 'or' as in advanced zcatalog searching how-to).
The problem I have at the moment is that Zope only
Trying to do a simple thing as creating a document and then adding a
property with an DTML method, found that the following code does not
work, it comes up with a password request (all security settings are at
defaults):
dtml-call
On 19 Jul 2000, at 20:32, Chris Withers wrote:
I've been teasing myself with the idea of using CODA as a storage for
Zope. It has built-in "per-object" replication, hoarding (download all
these objects so I can go to the beach) and sychronization.
That would be very cool :-)
If
Dieter Maurer wrote:
Unfortunately, there are a few exception (like "Resource not Found")
that are build into Python code (sigh).
Resource not found should get handled fine in 2.2
Anauthorized, sadly, doesn't. This was supposed to get fixed but seems
to haev dropped by the wayside :(
cheers,
Folder creation isn't really supported in LocalFS at the moment. Very
low level support is there (module function _save_Folder) but it's not
intended to be called externally and there doesn't seem to be any path
to call it. There is certainly not a local definition of
manage_addFolder
Dieter Maurer wrote:
Peter Arvidsson writes:
Is products treated in a different way in 2.2 final than in 2.1.6?
When I restart Zope all instances of my (and some imported) products
become broken because it cant find the product it is an instance of.
Did you read the Zope 2.2
Yes - thanks to Brad.
Give the proxy role (Authorizer) the permission
"Access contents informations" in the folder you
want to protect (i.e. the folder above GUF).
Cheers
Mario
Did anyone find a solution to this problem?
I have the exact same problem when try to access that object:
[EMAIL PROTECTED] wrote:
The effect I would like to achieve is:
when user access http://myserver/,
content of /text_object_1 and /text_object_2 will be shown
while user access http://myserver/subfolder/,
content of /subfolder/text_object_1 and /subfolder/text_object_2
The point is that
Hi,
I am using LocalFS to refer to image files (.jpg).
I tried localfsObj['imagefile.jpg'] but it doesn't
render the image. The same occurs inside Zope management
interface, i.e., if I try "view", it shows me a broken
link.
I am testing it on 2.1.6 Win32, but it will go online in
2.1.7
Ng Pheng Siong wrote:
http://www.cyclic.com/CVS/Dev/codewindow/linkhere
Gives a Zope error.
Icon at bottom says "Powered by Oasis".
Interesting. I took some time to browse around OpenAvenue to
find their attribution to Digital Creations / or Zope.
Couldn't find one anywhere. Looks
On Thu, 20 Jul 2000, Bill Anderson wrote:
Toby Dickenson wrote:
On Tue, 18 Jul 2000 16:08:48 -0600, Bill Anderson [EMAIL PROTECTED]
wrote:
I might be reading more into his words than was intended, but I think
this demonstrates the problem. Distributing multiple requests for one
Can anyone tell me what permissions are required to
get these copy and paste functions to work?
manage_copyObjects()
manage_pasteObjects()
Everytime I use them I get a Copy Error with the
manage_pasteObjects() function. And I am not sure
the copy function is working at all.
thanks,
Jason
Hello,
According to
http://www.zope.org/Members/zwork/Znolk_SQL_Wizard/index_html , Znolk SQL
Wizard should work with PostgreSQL. However, after making a PoPy Database
Connection, when I initiate the Znolk_SQL wizard, I get :
"Warning: There are no database connections. You need to add a Zope
91 matches
Mail list logo