[Zope3-Users] configure.zcml entries for using adapters.

2005-11-12 Thread Vijay Nakhawa
I am struggler in learning zope3. Please forgive me if i am wrong. How about using an intermediate view component? in template1.pt In zcml where view class is : from adapters import CarTotalDistanceAdapter class RoughView: def __init__(self,context,request): self.context = context

[Zope3-Users] Re: configure.zcml entries for using adapters.

2005-11-12 Thread Vijay Nakhawa
Sorry there is a bug in line of class RoughView: write:===> self.adapt = CarTotalDistanceAdapter(context) instead of self.adapt = CarTotalDistanceAdapter() On 11/12/05, Vijay Nakhawa <[EMAIL PROTECTED]> wrote: > I am struggler in learning zope3. > Please forgive me if i am wrong. > How about using

Re: [Zope3-Users] sqlos - getting factory of NoneType

2005-11-12 Thread Stephan Richter
On Saturday 22 October 2005 10:26, Vetlugin Yury wrote: > I`m using sqlos trunk. Saying simply it allow me to use RDB tables as an > zope objects. It look nice, i can see objects (rows in RDB table), can edit > them and even delete them. I assume the sqlos guys sent you over here? Otherwise asking

Re: [Zope3-Users] Executing utility specific code on server startup

2005-11-12 Thread Stephan Richter
On Saturday 22 October 2005 13:01, Chris Lehmann wrote: > I have a utility that needs to start several threads when zope starts > up.  What is the best way to accomplish this? > > So far I have tried to use the IDatabaseOpenedWithRoot and > IProcessStarting events but when I try and register them w

Re: [Zope3-Users] Application with objects incl relations / references

2005-11-12 Thread Stephan Richter
On Sunday 23 October 2005 21:06, Joshua Burvill wrote: > With the usual references/relations between objects, eg customer may have > more that one address, more than one quote, quote has many quote_items, etc > > Can someone give me a high level description/overview of what I need to > use/do in zo

Re: [Zope3-Users] How is sending a HTTP POST in Zope3 supposed to work ?

2005-11-12 Thread Stephan Richter
On Thursday 27 October 2005 05:44, Michael Haubenwallner wrote: > osting to the object itself equals a GET request. > Posting to the @@edit.html view of the object results in a >  >>>  UserError: The character set specified in the content type > ($charset) does not match file content. > error, even

Re: [Zope3-Users] Validation of schemas?

2005-11-12 Thread Stephan Richter
On Thursday 03 November 2005 08:09, Adam Summers wrote: > This will do the validation on add. But how do I get the schema  to be > validated on an > update to it? You could write your own property class that does the invariant checks. See zope.schema.fieldproperty.FieldProperty In fact, if you f

Re: [Zope3-Users] Redirect to Editform

2005-11-12 Thread Stephan Richter
On Tuesday 08 November 2005 07:11, Marita Werner wrote: > I want to add an object and after clicking on the "Add" Button there > should be a redirect to an editform. > > I read Stephan Richters book about "messageboard" and read about nextUrl > but that does not help me. Why does that not help you

Re: [Zope3-Users] at sea with basic setup

2005-11-12 Thread Stephan Richter
On Friday 04 November 2005 22:32, Ross Boylan wrote: > I'd like to create some users, set authentication methods, and so on. > After a lot of fooling around with the GUI and looking at various > docs, I conclude I have no idea what's going on. Tim suggested reading the books and he is right. I'll

Re: [Zope3-Users] sqlos, sites and local utilities

2005-11-12 Thread Stephan Richter
On Tuesday 08 November 2005 05:38, Andreas Elvers wrote: > Hi, > > sorry for asking it here but sqlos mailing list seems dead. > > Has anyone yet tried sqlos with database connections created as local > utilities ? At one point sqlos tries to get the utility in connection.py > Line 88. > > newcon

Re: [Zope3-Users] configure.zcml entries for using adapters.

2005-11-12 Thread Stephan Richter
On Thursday 10 November 2005 19:55, John Smith wrote: > I then created a nice page template which contains > this snippet: > > /> > > where context is the Car object. This is wrong, because Car does not have a function called getTotalDistance. In the view class do: class View: def getTotalDi

Re: [Zope3-Users] documentation on Field types

2005-11-12 Thread Stephan Richter
On Friday 04 November 2005 00:07, Ross Boylan wrote: > Where should I look for documentation on Field types?  By this, I mean > a current, exhaustive list of allowed Field types and their arguments. There is none. > I suspect when I go to the API documentation and enter zope.schema I'm > getting

Re: [Zope3-Users] Complex Adapter Requirements - Named Adapters?

2005-11-12 Thread Stephan Richter
On Sunday 30 October 2005 14:16, James Allwyn wrote: > One thought I had, was creating an interface IStandard, with > attributes like "meetsstandard" and "nameofstandard", and then > subclass this, e.g. to IAccreditationScheme and INationalCode (where > "Accreditation Scheme" and "National Code" ar

[Zope3-Users] Recommended policy for extension of the built-in skins and macros?

2005-11-12 Thread Alec Munro
Hi All, I've managed to dip my toes rather deeply in Zope3 without ever approaching the skins/layers aspect of it. I'm finally in a position to do that, and most of the examples I find extend the Rotterdam skin, and simply override it's macros. Is this simply for convenience, as there is a lot of

[Zope3-Users] Re: Zope3 design question

2005-11-12 Thread Philipp von Weitershausen
rubberduckee wrote: >>We've once had the ability of editing schemas TTW, but I'm not sure if >>this is still the case. At least I don't think it's part of a release >>tarball of Zope 3. >> >>Philipp > > Thanks, will do that in the future. Do you know why this particular > feature was 'dropped'?

[Zope3-Users] Re: apache as zope3's frontend and NTLM

2005-11-12 Thread Philipp von Weitershausen
Simon Hang wrote: > Dear all, > > I'm trying to use apache as zope3's frontend, and do NTLM authentication > as well. Well, traditionally it's been part of Zope's responsibility to do credentials extraction and user authentication. That doesn't mean it couldn't be done by the webserver in front

[Zope3-Users] Re: apache as zope3's frontend and NTLM

2005-11-12 Thread Florent Guillaume
Philipp von Weitershausen wrote: Simon Hang wrote: Dear all, I'm trying to use apache as zope3's frontend, and do NTLM authentication as well. Well, traditionally it's been part of Zope's responsibility to do credentials extraction and user authentication. That doesn't mean it couldn't be d

[Zope3-Users] Re: apache as zope3's frontend and NTLM

2005-11-12 Thread Philipp von Weitershausen
Florent Guillaume wrote: >> Well, Zope 3 doesn't care that Apache has authenticated your user. It >> doesn't see that. If you want the Zope 3 security system to interact >> with Apache's, here's a suggestion (not sure if it'll actually work): >> >> - Have Apache forward the REMOTE_USER CGI env vari

[Zope3-Users] error on start

2005-11-12 Thread Peter Koppatz
Hello, I performed the following steps: svn co svn://svn.zope.org/repos/main/Zope3/trunk Zope3 (At revision 40077.) cd Zope3 /usr/local/bin/python2.4 setup.py -q build_ext -i cp sample_principals.zcml principals.zcml /usr/local/bin/python2.4 z3.py and I got the following output: AttributesNS

Re: [Zope3-Users] Re: apache as zope3's frontend and NTLM

2005-11-12 Thread Simon Hang
Thanks for the help. I feel not comfortable to put the username in URL. User may be able to bypass the authentication and direct access zope with username in URL. And that's true, Apache can pass environment variable via mod_rewrite. What's a pity. Now the only solution I found is only working i

Re: [Zope3-Users] Re: apache as zope3's frontend and NTLM

2005-11-12 Thread Philipp von Weitershausen
Simon Hang wrote: > Thanks for the help. > > I feel not comfortable to put the username in URL. User may be able to > bypass the authentication and direct access zope with username in URL. True, it's not the nicest solution. But you could make it safer by first stripping the according request var