[Zope3-Users] Zope on WSGI for Deployment - best to still use proxy behind apache? Good/bad servers?

2008-01-22 Thread Jeff Shell
x27;t know much about it, but is it better to run through that than to go through mod_proxy? Or nginx? We had one new customer totally surprise us with their traffic/load (mostly solved, for now, due to some aggressive caching) and I'm interested in trying

[Zope3-Users] Buildout and the Data.fs

2008-01-22 Thread Jeff Shell
#x27;m finally coming up with a working buildout based setup!! Well, I've got one working, but now I'm trying to understand it better and polish it up. Thanks, Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Re: buildout and egg depedencies

2007-12-12 Thread Jeff Shell
y is operating in right now. > > Buildout *seems* like it could fix some big problems that have been > > hitting us hard in recent weeks. But I still can't wrap my head around > > how. > > Maybe you should start a new thread and tell of your use cases and ask > for examples of how to solve them? Now that I'm getting farther along, I should be able to do that. If I have time. Got a lot of pressure things the next couple of days :(. -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] buildout and egg depedencies

2007-12-11 Thread Jeff Shell
o smaller components as we change source code management systems) use a LOT of Zope 3. Do I grep the source for 'from zope ...' and 'import zope.*' and list all unique dependencies that I find? > Lots of people have. I expect that th

Re: [Zope3-Users] buildout and egg depedencies

2007-12-11 Thread Jeff Shell
wait, wait, wait, and then have a nice little self contained testing and development environment. But I've never been able to get a full Zope 3 "Application" up and running in that environment. There's just no time and the tools are just too hard to learn under the circumstance

Zope 3 w/ SQLAlchemy 0.4 (was Re: [Zope3-Users] Eggs and classic instance homes, again...)

2007-11-09 Thread Jeff Shell
On Nov 9, 2007 12:04 AM, Hermann Himmelbauer <[EMAIL PROTECTED]> wrote: > Am Freitag, 9. November 2007 01:31 schrieb Jeff Shell: > > - zope.component 3.4.0 (or anything built into the zope 3.4 tarball) > > - sqlalchemy 0.4.0 > > - simplejson > > Btw.

Re: [Zope3-Users] Eggs and classic instance homes, again... (was Re: Eggs, workingenv.py, and 'classic' instance homes)

2007-11-08 Thread Jeff Shell
rk in 3.3.1). I may be wrong about all of that, but that's how I currently perceive things. Things just look so different between the two. -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Eggs and classic instance homes, again... (was Re: Eggs, workingenv.py, and 'classic' instance homes)

2007-11-07 Thread Jeff Shell
come together. As for optimism... We'll see. :) But this was the step I could never make work (getting a buildout-managed instance up and running) before running out of time. Thanks again. -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.o

[Zope3-Users] Eggs and classic instance homes, again... (was Re: Eggs, workingenv.py, and 'classic' instance homes)

2007-11-07 Thread Jeff Shell
with them? I just don't have the time. I scarcely have time to keep up with the lists (which is obvious since I haven't read a thing for nearly three months). I'm going to resume my conversation here, responding to myself. August 16, 2007, Jeff Shell wrote: > > Jeff Shell wrot

Re: [Zope3-Users] Kupu and Zope3

2007-08-20 Thread Jeff Shell
On Aug 20, 2007, at 3:45 AM, "Jeremy Cook" <[EMAIL PROTECTED]> wrote: Is anyone using Kupu (or any other visual editor) with zope3? I saw hints that it might be ported to zope3 or conversely that "kupu must die". When I tried installing it under zope3 I didn't get awfully far. I tried and tr

Re: [Zope3-Users] Re: ObjectModifiedEvent but not ContainerModifiedEvent

2007-08-17 Thread Jeff Shell
On Aug 17, 2007, at 5:29 PM, Chris Withers <[EMAIL PROTECTED]> wrote: Martin Aspeli wrote: def handler(event): if IContainerModifiedEvent.providedBy(event): return ...which is pretty inefficient. All the subscriber lookup, etc, has to happen to get this far. There must be a

[Zope3-Users] Re: Eggs, workingenv.py, and 'classic' instance homes

2007-08-16 Thread Jeff Shell
> Jeff Shell wrote: > > But now I'd like to be able to install that into "classic" zope 3.3 > > instance homes, trying to be as unobtrusive as possible. > > How have you installed other packages before? I suspect by just dumping > their source in INSTANCE/li

Re: [Zope3-Users] Eggs, workingenv.py, and 'classic' instance homes

2007-08-16 Thread Jeff Shell
eases, but it's been an uphill battle just to get this far. On Aug 16, 2007, at 11:29 AM, Benji York <[EMAIL PROTECTED]> wrote: Jeff Shell wrote: But now I'd like to be able to install that into "classic" zope 3.3 instance homes, trying to be as unobtrusive as pos

[Zope3-Users] Eggs, workingenv.py, and 'classic' instance homes

2007-08-16 Thread Jeff Shell
; bits that are satisfied by a regular Zope installation into an 'extras_require'? Thanks, Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] Ahh, counters... Best practice?

2007-08-14 Thread Jeff Shell
ht solution (I don't understand the implications of '_p_independent', and some quick glancing around the web makes it appear as though you wouldn't want to count on a Length object for business logic). Would an annotation or tiny sub-object with two fields, the int a

Re: [Zope3-Users] Cheeseshop very flakey today

2007-08-02 Thread Jeff Shell
ing to try out buildout by watching it run on z3c.formdemo. But, alas, it's been very flakey. How common is this problem? -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Re: Using svn checkout with zc packages

2007-07-30 Thread Jeff Shell
On 7/30/07, Stephan Richter <[EMAIL PROTECTED]> wrote: > On Monday 30 July 2007 09:59, Jeff Shell wrote: > > Last time I checked, which I admit has been a while, buildout didn't > > provide any examples of how to transition into buildout style > > development. >

Re: [Zope3-Users] Re: Using svn checkout with zc packages

2007-07-30 Thread Jeff Shell
easier to write our own automation system that fit in with the way we've worked for so many years than to try to figure out buildout, eggs, all of the various half documented recipes, etc. I feel like I need a training course or consultancy to move to buildout, which requires time and money that we just don't have. -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Re: Unicode for Stupid Americans (like me)?

2007-03-01 Thread Jeff Shell
encoding* instead of *decoding*, which is why I would see garbage characters show up in certain situations. I now realize this is the right way to work with those tools:: rendered = textile(content.encode('utf-8'), encoding='utf-8', output='utf-8&#x

Re: [Zope3-Users] Re: Unicode for Stupid Americans (like me)?

2007-02-28 Thread Jeff Shell
On 2/28/07, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: Jeff Shell wrote: > - Not have any encode / decode errors. 'ascii codec doesn't recognize > character ... at position ...'. I don't want to keep on bullying > through whenever this pop

[Zope3-Users] Unicode for Stupid Americans (like me)?

2007-02-28 Thread Jeff Shell
but that's no longer acceptable. Sometimes I quiver in terror, waiting for everything to fall down because of something so seemingly basic like strings/text. It may be a lot of technical debt, or it may be extremely easy to pay down. In any case, it's time to pay it down. :) Thanks, -- Jeff

Re: [Zope3-Users] Using zope.component outside Zope 3-how to bootstrap the registries

2007-02-16 Thread Jeff Shell
I used. I believe Zope 3.1 implemented the "Simplify Component Architecture" proposal which got rid of extraneous bits like Services, and as such may be a bit easier to work with. -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://

Re: [Zope3-Users] formlib widget

2006-12-01 Thread Jeff Shell
t like 'w'), and then access the widgets within that setup:: Anyways, you can use the 'python' or 'nocall' expressions if you want to get the widget unrendered: or or -- Jeff Shell _

Re: Re: [Zope3-Users] z3c.zrtresource or zc.resourcelibrary

2006-11-01 Thread Jeff Shell
collection of mochikit, dojo, et al). > > Ah, the real reason for my response here: how does one use third party > WSGI "Middleware" with Zope? zope.paste, maybe (http://svn.zope.org/zope.paste/)? I think that's what Jim Washington has used. Ahh, thanks, I'll take a look. -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: Re: [Zope3-Users] z3c.zrtresource or zc.resourcelibrary

2006-10-31 Thread Jeff Shell
ogether on their own and/or with big systems like Zope. By the way - I've had some issues with the dependency tracking in zc.resourcelibrary. Is there a tracker where I can post said issues? (if I can remember and reconstruct them, that is) -- Jeff Shell ___

[Zope3-Users] Links / Relationships (again)

2006-10-16 Thread Jeff Shell
e as well?" .. or something like that. It's a bit beyond the scope of my current project, but is something I'd like to get back to. I see there's a `zc.extrinsicreference` in the svn.zope.org repository. Is that in a usable state? Thanks, Jeff Shell

[Zope3-Users] Using buildout for Zope 3 development instances (not developing Zope 3, but for developing against it)?

2006-10-12 Thread Jeff Shell
atalog, hurry, etc). I know I may need to write Recipes for some of what I want to do and I don't mind that. I just would like to keep our development strategy -- develop in an instance home built on a zope 3 release -- working smoothly while automating all of the dependencies and site.zcml/con

[Zope3-Users] Re: Re: "So you've just downloaded Zope 3.3...."

2006-09-29 Thread Jeff Shell
On 9/28/06, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: Jeff Shell wrote: > One blow-up instance was on something that was marked deprecated (a > vocabulary that used `zope.app.utility.vocabulary.UtilityVocabulary` > as its factory). How? can you provide a traceback? Li

Re: Re: [Zope3-Users] "So you've just downloaded Zope 3.3...."

2006-09-28 Thread Jeff Shell
On 9/28/06, Jim Fulton <[EMAIL PROTECTED]> wrote: Jeff Shell wrote: > ... now what? > > I just tried moving some work over to Zope 3.3. Already things are > blowing up. What do you mean by blowing up? We certainly tried to make 3.3 backward compatible. Jim One blow-

[Zope3-Users] "So you've just downloaded Zope 3.3...."

2006-09-28 Thread Jeff Shell
one have an easy trick (a sed / awk / perl / python / etc script) for easily switching an Instance Home between two core Zope versions? I have a lot of code that I need to support back to at least 3.2 and while I'm working with trying to migrate to Zope 3.3, I'd like to be able to switc

Re: Re: [Zope3-Users] Re: zalchemy integration

2006-08-14 Thread Jeff Shell
On 8/14/06, Stephan Richter <[EMAIL PROTECTED]> wrote: On Monday 14 August 2006 01:00, Jeff Shell wrote: > If things slow down... uhm, ever... for us, I'd like to see if I can > get us to open up some of the more generic toolkits we've built up in > recent months, as the

Re: Re: [Zope3-Users] zalchemy integration

2006-08-14 Thread Jeff Shell
rojections and implementations as estimations, and us not really scoping out ahead of times what it would mean to track money through the system with 100% reliability, or deal with complex product offering scenarios that couldn't even be done before. -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: Re: [Zope3-Users] Re: zalchemy integration

2006-08-14 Thread Jeff Shell
issue without badgering the response; something similar to Seaside's `updateRoot` method. -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Re: zalchemy integration

2006-08-13 Thread Jeff Shell
hen a client or boss goes "can we get rid of those tabs at the top? how about sorting the menu on the side? can we add some links to the footer for support contact? why does that say 'add ZPT page?'", etc. If things slow down... uhm, ever... for us, I'd like to see if I can get us to open up some of the more generic toolkits we've built up in recent months, as they've been very empowering. -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: Re: [Zope3-Users] zalchemy integration

2006-08-12 Thread Jeff Shell
- and with the cleanest application/business code we've ever had. But it took a lot of work and time and experience from prior engagements to filter out the parts of Zope 3 that we wanted, the parts that were crucial, and all of the fluff we could lea

Re: Re: [Zope3-Users] zalchemy integration

2006-08-11 Thread Jeff Shell
things to different people. Some may want invisible or near invisible integration with conventional Zope content-management-esque concepts, integration with the ZMI, the dublin core, etc. That's overkill for my needs, which is why I've stayed away from those implementations. Having Location, Se

Re: [Zope3-Users] Security Roles and custom authenticators and scarcely-persistent apps (HELP!)

2006-04-26 Thread Jeff Shell
On 4/26/06, Bernd Dorn <[EMAIL PROTECTED]> wrote: > > On 27.04.2006, at 02:44, Jeff Shell wrote: > > > So I spent the day writing an IAuthenticator utility that loads > > principals out of an RDBMS (via a SQLAlchemy mapper based model). I > > got that working. A

[Zope3-Users] Security Roles and custom authenticators and scarcely-persistent apps (HELP!)

2006-04-26 Thread Jeff Shell
for this principal, role combination """ def getPrincipalsAndRoles(): """Get all settings. Return all the principal/role combinations along with the setting for each combination as a sequence of tuples with the role id, principal id, and setting, in that order. """ -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] Other SQLAlchemy thoughts, Zope transaction manager, etc...

2006-04-06 Thread Jeff Shell
re documentation. Trying to figure out where to plug in (if possible) in this situation is tricky. And I imagine I'm probably overthinking everything at this point anyways. Maybe it'd be better to just ask for some kind of two-phase commit support in SQLAlchemy's unit of work syste

Re: [Zope3-Users] editform onSuccess-method

2006-03-29 Thread Jeff Shell
ot;Itinerary Details Updated" self.onSuccess() else: self.status = u"No Changes" Something like that should work. You could even make your own base EditForm class that defined the above action, and a subclass would just need to provide onSuccess and the form_fields. -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] PyWebOff

2006-03-20 Thread Jeff Shell
ry=".Book" > permission="zope.ManageContent" > /> > >class=".Book" > permission="zope.ManageContent" > view="addbook" > title="Book" > /> > >schema=".IBook" > permissi

Re: [Zope3-Users] Creating objects in software space when making site

2006-03-07 Thread Jeff Shell
gable auth utility and its sources. from myapp.security.browser import establish establish.createAuthenticationUtility( default, realm='Killer App', registerAs='' ) # etc... And then in configure.zcml: -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Visionaire! (All your problems, solved)

2006-03-02 Thread Jeff Shell
On 3/2/06, Max M <[EMAIL PROTECTED]> wrote: > Jeff Shell wrote: > > >I think this keeps Zope 3 as we know it alive, keeps the Zope brand > >intact, and offers a future for Zope 2 and similar caliber desires for > >a Big App Server while not interfering with the more

[Zope3-Users] Visionaire! (All your problems, solved)

2006-03-01 Thread Jeff Shell
ides a robust and mature web development environment that is in place already behind many web sites and applications worldwide. [download zope 2.9 now | more info | roadmap ] Thoughts? I think this keeps Zope 3 as we know it alive, keeps the Zope brand intact, and offers a future for Zope

Re: [Zope3-Users] Re: browser:form

2006-02-23 Thread Jeff Shell
On 2/22/06, suresh <[EMAIL PROTECTED]> wrote: > Jeff Shell wrote: > > On 2/21/06, David Johnson <[EMAIL PROTECTED]> wrote: > > With formlib, you'd be able to get/set this in the update() method, or > > if you're clever, you can do it in publishTraverse s

Re: [Zope3-Users] browser:form

2006-02-21 Thread Jeff Shell
ctid is included in the rendered form. > I would use sqlos, but my limited exposure makes me think it is not as > flexible as I would like. I haven't used sqlos. A benefit of sqlos is that, in theory, it would load your Contact object and make it appear pretty much like any other Zope ob

Re: [Zope3-Users] browser:form

2006-02-21 Thread Jeff Shell
, and look up the IFormAPI interface too. All of our custom forms became so much easier to control and understand after moving to formlib, and in many cases the code to support a form actually shrank. There's a lot more plain old Python code and a lot less ZCML magic, which makes it easi

Re: [Zope3-Users] What attributes are made persistent

2006-02-15 Thread Jeff Shell
gt; > Stephan > > -- > > Stephan Richter > > CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) > > Web2k - Web Software Design, Development and Training > > ___ > > Zope3-users mailing list > > Zope3-users@zope.org > > http://mail.zope.org/mailman/listinfo/zope3-users > > > > ___ > Zope3-users mailing list > Zope3-users@zope.org > http://mail.zope.org/mailman/listinfo/zope3-users > -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] What attributes are made persistent

2006-02-14 Thread Jeff Shell
Oh! And reference to related Persistence modules (persistent mappings, lists, BTrees): http://www.zope.org/Wikis/ZODB/FrontPage/guide/node6.html On 2/14/06, Jeff Shell <[EMAIL PROTECTED]> wrote: > On 2/14/06, Peter Bengtsson <[EMAIL PROTECTED]> wrote: > > D'oh! That&

Re: [Zope3-Users] What attributes are made persistent

2006-02-14 Thread Jeff Shell
On 2/14/06, Peter Bengtsson <[EMAIL PROTECTED]> wrote: > D'oh! That's confusing. Isn't there a class that gathers all of these in one. > > It seems confusing, you derive from Persistent but only some are accepted. > Does that mean that there's PersistentFloat and PersistentTuple too? > If not, why

Re: [Zope3-Users] How To Solve in Zope 3

2006-02-03 Thread Jeff Shell
On 2/3/06, Gary Poster <[EMAIL PROTECTED]> wrote: > > On Feb 3, 2006, at 9:32 PM, matt wilbert wrote: > > > I have exactly the same situation, as I am writing a network > > management tool. I am using one big container and a local catalog. > > Then you can slice and dice as best suits you. I also

Re: [Zope3-Users] Re: Please Guido, pick me, pick me!

2006-02-03 Thread Jeff Shell
The lack of ZCML magic is wonderful. Even more wonderful - i was dreading trying to make an add form that populated a custom written date widget with values based on the end of a date range set on the parent if there were no values set yet. I was dreading that all week. But last night, when it came time to implement that feature, I found the 'get_rendered' option very quickly, and three lines of code later I had a form whose usability had increased tenfold. -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] Trouble understanding events, handlers, subscribers (Trying to use component architecture outside of Zope)

2006-01-23 Thread Jeff Shell
concepts of 'adapts' and 'provides', and what that means for me looking to subscribe to an event with a plain old function. Or class. Or instance. -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Zope 3 Ready for Production? Really?

2006-01-14 Thread Jeff Shell
I know that Stephan Richter has responded to many of these points. I'll add in some of my views as someone from the borderlands - I'm not a core developer, but I am someone who has used Zope since before it was Zope. Since before it was "before it was Zope". I worked on core Principia and Zope a lo

Re: [Zope3-Users] Importing Lots of Objects

2006-01-08 Thread Jeff Shell
On 1/8/06, David Johnson <[EMAIL PROTECTED]> wrote: > What is the best for merchants to manage the product list and content of > their site? I can certainly put in into an RDBMS, but what would be the > easiest way for them to manage their offering? Should I create a portal site > for them or shou

Re: [Zope3-Users] Tagging content

2006-01-08 Thread Jeff Shell
mapping (similar to a catalog index). >Searching for tags is easy - just query the mapping >for appropriate keys. New tags are created by adding >a new key to the mapping, a (weighted) collection of >tags is the list if mapping keys. >Drawbacks: I can't think of any right now > > Has anyone done that before? Maybe I'm just reinventing the wheel... > > Thanks in advance, > Igor > ___ > Zope3-users mailing list > Zope3-users@zope.org > http://mail.zope.org/mailman/listinfo/zope3-users > -- -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Access attributes of content object from view

2006-01-07 Thread Jeff Shell
Try using ``len(self.context)``. The container will report its size. For a BTreeContainer, methods like ``values`` return OOBTreeItems, not a regular Python list. That's where the error is happening. You can get to the values of the OOBTreeItems object, but not its length. But the container itself

[Zope3-Users] Page Notification pattern and cookies - getting cookies set in the same request?

2006-01-06 Thread Jeff Shell
Hello. Something came up today that I'm not sure how to deal with. A long and wordy explanation follows, but the quick question I have is this: without using sessions, or anything else tied into transactions / persistence but tied to the current visitor, how can I write to a very small 'messenger'

Re: [Zope3-Users] Permission required for renaming?

2006-01-05 Thread Jeff Shell
One option that you have is to protect the View object that you use to do the renaming, unless you're using views that are provided by someone/something else (the default Zope UI, etc). You can protect your 'rename' view and inside of it use 'zope.security.proxy.removeSecurityProxy' to get access t

Viewlets (was Re: [Zope3-Users] using tal to insert zwiki content)

2006-01-05 Thread Jeff Shell
On 1/4/06, Benji York <[EMAIL PROTECTED]> wrote: > Jeff Shell wrote: > > Viewlets are a new feature in Zope 3.2. > > They are? I don't recall it being so (and would prefer it not). Why not? They're great! I've been using them in a new application I've

Re: [Zope3-Users] using tal to insert zwiki content

2006-01-04 Thread Jeff Shell
On 1/3/06, Brad Allen <[EMAIL PROTECTED]> wrote: > At 11:52 PM -0700 1/2/06, Jeff Shell wrote: > >There are a lot of ways one can go from there. In Zope 3.2, a good > >solution for pages made of parts where the content of the parts comes > >from ZWiki pages, you could p

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

2006-01-03 Thread Jeff Shell
What about using zope.app.component.hooks.setSite? It sets the site on a zope.thread.local based object, and I believe most utility lookups fall back on that setting if context is not supplied. setSite is called when a site is traversed through, via a BeforeTraverseEvent. It's cleared at the end of

Re: [Zope3-Users] using tal to insert zwiki content

2006-01-02 Thread Jeff Shell
``context/wiki/About_Downwinders`` wouldn't (probably) know how to render itself as HTML. In fact, you'd probably not want it to render itself as HTML in its default since that would render the whole page. To do this properly in Zope 3, you'd want to define a browser view to render the ZWiki page

Re: [Zope3-Users] How come no IView?

2006-01-01 Thread Jeff Shell
> Thanks Chris, that actually does make things clearer. As a Z3 beginner, > longtime Z2 user (ZPTs, scripts, ZSQL), and corporate developer who is > trying to promote Z3 in-house, I am all for the current trend toward > simplification, especially of ZCML > (http://www.z3lab.org/sections/blogs/phil

Re: [Zope3-Users] Container Constraints

2005-12-31 Thread Jeff Shell
First - you can use ``from zope.app.container.constraints import contains``. It's a bit easier to write. Anyways, in Python you can't reference the class you're in because that name, 'ILinkContainer' does not exist **until the end of the class statement** (after all of the things indented within t

Re: [Zope3-Users] Specialized URL traversal.. Best way?

2005-12-31 Thread Jeff Shell
On 12/31/05, Marius Gedminas <[EMAIL PROTECTED]> wrote: > On Thu, Dec 29, 2005 at 11:22:28PM -0700, Jeff Shell wrote: > > Again, this is to have URLs like: > > > > myapp/@@tags/zope/viewlet > > > > And turn that into a catalog search for anyof {'zope&

Re: [Zope3-Users] Re: Get classes implementing Interface

2005-12-30 Thread Jeff Shell
Oops. It didn't seem to provide the code. Ahhh, GMail. Not even you can convince me that web based mail is going to replace real clients... And if there are multiple copies of this message, I apologize. from zope.interface import Interface, implements from zope.app import zapi from zope.event impo

Re: [Zope3-Users] Re: Get classes implementing Interface

2005-12-30 Thread Jeff Shell
On 12/30/05, Florian Lindner <[EMAIL PROTECTED]> wrote: > Am Freitag, 30. Dezember 2005 17:45 schrieb Jim Fulton: > > Philipp von Weitershausen wrote: > > > So, what you want is not a list of classes but a list of factories that > > > can create IContainers. This is possible by using > > > zapi.get

[Zope3-Users] Specialized URL traversal.. Best way?

2005-12-29 Thread Jeff Shell
This week I've been revisiting some of my early Zope 3 ideas in a small new application we plan to use internally. One of the core concepts of this system is 'tagging', similar to del.icio.us, flickr, snippets, etc. Old versions that I wrote managed tags manually, with a 'taglib' object and tags be

Re: [Zope3-Users] Re: ZCML, practicality, purity (was "Excellent perspective...")

2005-12-23 Thread Jeff Shell
On 12/23/05, Shane Hathaway <[EMAIL PROTECTED]> wrote: > Jeff Shell wrote: > > I just believe - heavily - after many of my Zope 2 experiences that > > configuration as done by ZCML should be as separate from the code > > itself as possible. If it's going to be in t

Re: [Zope3-Users] Re: ZCML, practicality, purity (was "Excellent perspective...")

2005-12-22 Thread Jeff Shell
figuration directives, explain their Python alternative. Not to promote its use when writing large systems, shared toolkits or frameworks, but to show how to test or just to use adapters and utilities in small applications that don't require the full Zope toolkit. I mentioned that I liked the ZCML documentation. It's great for finding out what directives are available and what their options are. But it's still pretty poor at explaining what is really going on behind the scenes. That may be more advanced documentation for some cases - but it could cut down on some users frustration and surprises. OK. This has been long and rambling. I blame the christmas lunch cocktails. :) -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] Re: [Zope3-dev] URGENT RFC: Is anyone using response.write in Zope 3?

2005-12-19 Thread Jeff Shell
king), efficient image serving from Zope is not that big of a concern to us... But back to the issue at hand - knowing how to better serve those out to the response would be a big help. On 12/19/05, Martijn Faassen <[EMAIL PROTECTED]> wrote: > Jeff Shell wrote: > > I was using it in

[Zope3-Users] Re: [Zope3-dev] URGENT RFC: Is anyone using response.write in Zope 3?

2005-12-19 Thread Jeff Shell
I was using it in some custom views for HurryFile based images. I've removed it since I started testing our code against Zope 3.2. Right now I just return the hurryfile binary data with a return statement (one big chunk), but am looking forward to knowing how to return long output. On 12/19/05, Ji

Re: [Zope3-Users] Catalog for newbies

2005-12-06 Thread Jeff Shell
On 12/6/05, Frank Burkhardt <[EMAIL PROTECTED]> wrote: > Hi, > > after adding a "Unique Id utility", "Catalog" and some field + text indices > I successfully added documents which seem to be added to the catalog > (as shown in the catalog's "Advanced"-tab). > > However I've got two question now: >

[Zope3-Users] Re: Denying permissions for 'everybody' - which principals to use?

2005-12-02 Thread Jeff Shell
f the HTTP auth challenge box is canceled out of. On 11/16/05, Jeff Shell <[EMAIL PROTECTED]> wrote: > For a simple content management system we're building, I've started > working on a simple security interface which is supposed to enable / > disable 'view' (and

[Zope3-Users] Generations - a missed use case? (Evolving an application for the first time)

2005-11-18 Thread Jeff Shell
I have an application where I'm trying to use 'zope.app.generations' for the first time. And after much pulling of hair and looking at the core code, I found what may be a missed scenario. Basically, we deployed this application for a customer and now they want some changes. It changes the schema

[Zope3-Users] Denying permissions for 'everybody' - which principals to use?

2005-11-16 Thread Jeff Shell
For a simple content management system we're building, I've started working on a simple security interface which is supposed to enable / disable 'view' (and dublin core view). The setup that I have - or want to have - is a UI that says: Who can see this item? - Everybody - Nobody (grants view to

Re: [Zope3-Users] User data / metadata

2005-09-28 Thread Jeff Shell
On 9/28/05, James Allwyn <[EMAIL PROTECTED]> wrote: > Hello list, > > A small 'conceptual' question... > > Both Stephan and Philipp's books recommend using principal metadata to > store users' email addresses etc. If I intend to use the email > addresses (and other contact information I want to sto

Re: [Zope3-Users] Sending object modified event on FTP upload - best practice?

2005-07-28 Thread Jeff Shell
On 7/28/05, Jim Fulton <[EMAIL PROTECTED]> wrote: > Jeff Shell wrote: > > In looking at how FTP support is written in zope.app.ftp, I notice > > that ObjectCreatedEvent notifications are sent off when new objects > > are created. But when zope.app.ftp.FTPView._overwrit

[Zope3-Users] Sending object modified event on FTP upload - best practice?

2005-07-27 Thread Jeff Shell
that should be in the FTPView's implementation? This is in Zope 3.1b1. Thanks -- Jeff Shell ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Searching Content Objects

2005-07-24 Thread Jeff Shell
Create a browser view object with a method that looks up the catalog utility and performs the search and returns results back to the template. Basically take what you've learned about writing views that combine classes and templates, and use code like the following: def search(self, query):

Re: [Zope3-Users] general guidance how to develop a (relational)database driven app

2005-06-28 Thread Jeff Shell
You might want to look at 'sqlos', a SQLObject support package for Zope 3. http://codespeak.net/z3/sqlos/ SQLObject is an object-relational mapper for Python. Between the two of them, the SQL side of your ITrackContainer and ITrack is taken care of transparently. So with just a little bit of wor

[Zope3-Users] My Javascript resources aren't loading in Firefox

2005-06-27 Thread Jeff Shell
he web developer toolbar for Firefox and used its "View Javascript" option, which loads and displays the source of all scripts in a page, including referenced ones, and it loads these libraries just fine. So Has anyone seen anything like this? any ideas on where to look? This partic

Re: [Zope3-Users] Compiling Zope 3 (Mac OS X 10.4.1, Xcode v2.1). Failure.

2005-06-26 Thread Jeff Shell
(btw - the skin issues... finally resolved! 'skin_macros' in Zope 3.0 seems to want to be 'view_macros' in 3.1b1) On 6/26/05, Jeff Shell <[EMAIL PROTECTED]> wrote: > I got the same error, although I haven't updated to XCode 2.1 yet. > > Zope 3.1b1 compil

Re: [Zope3-Users] Compiling Zope 3 (Mac OS X 10.4.1, Xcode v2.1). Failure.

2005-06-26 Thread Jeff Shell
I got the same error, although I haven't updated to XCode 2.1 yet. Zope 3.1b1 compiled fine, but I ran into some issues with that regarding setting up a simple skin (I'll report that separately.. I was trying to get Zope 3.0 going again to try my code there to see if it was a difference between 3