Re: [Zope-dev] RFC: Proposal for merging jbohman-zope.registry branch of zope.component

2011-08-26 Thread Tim Hoffman
Regarding Withers suggestion - should we be looking to move these libraries to the WSGI namespace? Or are there real use cases outside the web world? I use zope.component outside of web related development. I don't really care what namespace it is in, but zope.component/zope.interface are

Re: [Zope-dev] PyPy 1.4.1 and the ZTK

2010-12-23 Thread Tim Hoffman
I vaguely recall something about PyPy's JIT not being good with interpreter-style patterns in code - so that might slow down things if templating is involved. That would suggest the precompiling chameleon templates to .pt.py would give a better performance for templates ;-) Regards,

Re: [Zope-dev] DTML is dead, long live DTML ;-)

2010-09-05 Thread Tim Hoffman
use in AGX2: dtml-var description Vincent On Sun, Sep 5, 2010 at 5:13 AM, Tim Hoffman zutes...@gmail.com wrote: Hi Florian I use a model based generation approach (from enterprise architect) however even archgenxml has templates for large amounts of boiler plate under the hood

Re: [Zope-dev] DTML is dead, long live DTML ;-)

2010-09-04 Thread Tim Hoffman
Please note that DTML is a dead (and horrid) technology. Martin But zpt is horrible for doing non html/xml based things ;-), What do you think is good alternative in the zope eco system now for templating other types of things (sql, python ...) ? T

Re: [Zope-dev] DTML is dead, long live DTML ;-)

2010-09-04 Thread Tim Hoffman
;-) T On Sun, Sep 5, 2010 at 9:11 AM, Florian Friesdorf f...@chaoflow.net wrote: On Sun, Sep 05, 2010 at 08:49:39AM +0800, Tim Hoffman wrote: Please note that DTML is a dead (and horrid) technology. Martin But zpt is horrible for doing non html/xml based things ;-), What do

Re: [Zope-dev] Developer meeting today at 15:00 UTC

2010-08-31 Thread Tim Hoffman
Please don't drop 2.5 support yet. I use zope.component, zope.interface, zope.event, zope.lifecyclevent on all my projects on appengine ;-) and that won't be moving from 2.5 for a while I suspect. T On Tue, Aug 31, 2010 at 5:19 PM, Wichert Akkerman wich...@wiggy.net wrote: On 8/31/10 10:32 ,

Re: [Zope-dev] zope.pagetemplate new install dependencies introduced since 3.5.0 and a modest proposal.

2010-08-12 Thread Tim Hoffman
Hi On Thu, Aug 12, 2010 at 4:19 PM, Hanno Schlichting ha...@hannosch.euwrote: Hi. On Thu, Aug 12, 2010 at 7:36 AM, Tim Hoffman zutes...@gmail.com wrote: I have been using zope.pagetemplate for quite some time within repoze.bfg projects and bobo (+zope.component) on google appengine

Re: [Zope-dev] zope.pagetemplate new install dependencies introduced since 3.5.0 and a modest proposal.

2010-08-12 Thread Tim Hoffman
Hi Hanno Actually went back and had a look at my appengine instances, and the earliest one using zope.pagetemplate has been running since Aug, 2008 ;-) T It might be easier to switch to the new kid, instead of trying to make the highly integrated zope.pagetemplate work for you. Its

Re: [Zope-dev] zope.pagetemplate new install dependencies introduced since 3.5.0 and a modest proposal.

2010-08-12 Thread Tim Hoffman
HI Hanno Changing the default expression is easy. z3c.pt does exactly that to keep compatibility with zope.tal. Just found it too, looks like it might be the right place to start. The other thing I am trying to find is batch compiling all of the templates. I can't rely on 100% coverage in

[Zope-dev] zope.pagetemplate new install dependencies introduced since 3.5.0 and a modest proposal.

2010-08-11 Thread Tim Hoffman
think this is a good idea, I am quite willing work on this (with guidance ;-), so thoughts, comments welcome. TIA Tim Hoffman ___ Zope-Dev maillist - Zope-Dev@zope.org https://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding

Re: [Zope-dev] Segfault in zope.configuration

2010-04-02 Thread Tim Hoffman
sorry On Fri, Apr 2, 2010 at 9:07 PM, Marius Gedminas mar...@gedmin.as wrote: A: Because it destroys the flow of the conversation Q: Why is it bad? A: No, it's bad. Q: Should I top post in replies to mailing lists? On Fri, Apr 02, 2010 at 12:26:59PM +0800, Tim Hoffman wrote: Hi Martin

Re: [Zope-dev] Segfault in zope.configuration

2010-04-01 Thread Tim Hoffman
Hi Martin Given that its failing on a call to libc I would do a quick run with strace and ltrace. (In your case ltrace will be probably be more useful.) You will be able to see the calls into the libraries and you should see immediately if your segfault is inside expat or not. (ltrace output

Re: [Zope-dev] Optional C extensions

2010-03-10 Thread Tim Hoffman
such as model.MyClass but gae doesn't implement such a thing, so deferredimport was the next best thing. T On Wed, Mar 10, 2010 at 8:05 PM, Jim Fulton j...@zope.com wrote: On Tue, Mar 9, 2010 at 6:15 PM, Tim Hoffman zutes...@gmail.com wrote: Hi As Attila pointed out, zope.proxy is possible

Re: [Zope-dev] Optional C extensions

2010-03-09 Thread Tim Hoffman
Hi As Attila pointed out, zope.proxy is possible to implement using peak.util.proxies if you only want some limited zope.proxy support. You won't get zope.security going down this path. I do that specifically so that I can use zope.deferredimport on app engine. Below is the awful hacking I do

Re: [Zope-dev] New Zope 3 name: BlueBream

2010-01-04 Thread Tim Hoffman
I got the fish connection straight away. Not sure its a good move. T On Tue, Jan 5, 2010 at 7:43 AM, Hermann Himmelbauer du...@qwer.tk wrote: Am Montag 04 Januar 2010 20:16:50 schrieb Jan Ulrich Hasecke: On 04.01.10 19:23, Baiju M wrote: Hi All, I am proposing to call Zope 3

Re: [Zope-dev] improving the utility and adapter lookup APIs

2009-11-28 Thread Tim Hoffman
Just re-inforcing this I almost never do IFoo. adaption as I am almost always using multiadapters and utilities so I completely forget about the IFoo adaption capability. Which means I always just write getAdapter as well as it seems more consistent to from an api consumption point of view. T

Re: [Zope-dev] zope.site.hooks

2009-10-07 Thread Tim Hoffman
GAE users and repoze.bfg users as repoze.bfg doesn't use zope.security at all I did a quick grep and it appears that repoze.bfg never actually loads zope.component.zcml so I think if the only dependancies you introduce are via zcml then you should be ok. And given I am running repoze.bfg on app

Re: [Zope-dev] zope.site.hooks

2009-10-06 Thread Tim Hoffman
Hi On Wed, Oct 7, 2009 at 8:49 AM, Martin Aspeli optilude+li...@gmail.com wrote: Martijn Faassen wrote: Please don't add new dependencies to zope.component. Even optional ones, IMHO. It makes it harder to re-use for others and more complex to understand. Many people (e.g. those wanting to

Re: [Zope-dev] For the record - a minimum changes to zope.proxy to support zope.deferredimport under google app engine

2009-08-13 Thread Tim Hoffman
I am a !...@head ;-) Forgot the else: clause in the code I posted. Corrected code is below. T On Thu, Aug 13, 2009 at 11:30 AM, Tim Hoffman t...@zute.net wrote: Hi Folks This is a quick and dirty change and to be honest the main reason I am posting it here is so there is a searchable record

[Zope-dev] For the record - a minimum changes to zope.proxy to support zope.deferredimport under google app engine

2009-08-12 Thread Tim Hoffman
import a module you depend on but not really import the code until it gets touched which can allow you to stagger you startup costs. (For instance edit functionality of a site could be deferred until someone actually edits something). Hope this helps someone Regards Tim Hoffman

Re: [Zope-dev] A suggestion for changing exception handler when loading 'c' optimisations to make modules more friendly for GAE

2009-07-03 Thread Tim Hoffman
wrote: Tim Hoffman wrote: gae/1.333250465889549129/zope/i18nmessageid/_zope_i18nmessageid_message.py, line 6, in __bootstrap__     imp.load_dynamic(__name__,__file__)   File /base/python_dist/lib/python2.5/py_imp.py, line 116, in load_dynamic     raise NotImplementedError('This function

Re: [Zope-dev] A suggestion for changing exception handler when loading 'c' optimisations to make modules more friendly for GAE

2009-07-03 Thread Tim Hoffman
Hi Jim That is what I am doing now, the problem I see though is when someone upates (via buildout etc a) module they need to remember to remove the recreated file before redeploying the app, unfortunately I am not sure I see a way reliable way of specifying that these files should be

Re: [Zope-dev] A suggestion for changing exception handler when loading 'c' optimisations to make modules more friendly for GAE

2009-07-03 Thread Tim Hoffman
Hi Tobias Cool Just something to note google recently upped the file limit to 3000 so don't be too agressive generating those zips ;-) T Great idea to examine EGG-INFO/SOURCES.txt, Jim! I just added this to my recipe (http://pypi.python.org/pypi/rod.recipe.appengine) and got rid of the

[Zope-dev] A suggestion for changing exception handler when loading 'c' optimisations to make modules more friendly for GAE

2009-07-02 Thread Tim Hoffman
Hi all Can I make a suggestion that would make a couple of modules more gae friendly ;-) zope.interface and zope.i18nmessageid have 'c' optimisations which obviously don't work under app engine. When these modules are imported you get the following exception.

Re: [Zope-dev] How to test changes to ZTK packages?

2009-06-30 Thread Tim Hoffman
I have to chime in here too lxml is a real pain and seems to be problematic to get a straightforward build for packages other than ZTK as well. I have had varying success building lxml even under ubuntu - success seems to be dependant on the type of build defined. T On Tue, Jun 30, 2009 at

Re: [Zope-dev] RFC: ZTK custom publications, zope.app.publication, and zope.traversing

2009-06-22 Thread Tim Hoffman
HI Big +1 from me on this. I had to do a whole lot of hacks to get this stuff running on app engine and basically had to gut zope.proxy which was ugly and obviously unsupported. After getting this running which was a big task I decided to go with repoze.bfg which just didn't have the security

Re: [Zope-dev] RFC: ZTK custom publications, zope.app.publication, and zope.traversing

2009-06-22 Thread Tim Hoffman
ugly hacks was about all I could come up with. The refactoring going on at the moment is fantastic. T On Mon, Jun 22, 2009 at 9:22 PM, Tres Seaver tsea...@palladion.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim Fulton wrote: On Jun 22, 2009, at 7:11 AM, Tim Hoffman wrote

Re: [Zope-dev] who wants to maintain the Zope 3 ZMI?

2009-04-14 Thread Tim Hoffman
I use zmi as a basic ui for viewing objects bacause we get basic views for some default content, navigating the object store, and configuring local security settings on objects, and configuring per instance tools. And this is mainly because in the early stages of our projects we haven't built the

Re: [Zope-dev] who wants to maintain Zope 3?

2009-04-14 Thread Tim Hoffman
I thhink just dropping zmi is ploblematical without a management ui alternative. How would you propose managing things like per instance pluggable auth components. zcml is not enough and nor is any other static config. You need per instance persistent configuration and I am assuming grok and

Re: [Zope-dev] who wants to maintain Zope 3?

2009-04-11 Thread Tim Hoffman
that we have taken, and what if could be the alternative if the Zope 3 app server itself withered? Rgds Tim Hoffman ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related

Re: [Zope-dev] who wants to maintain Zope 3?

2009-04-11 Thread Tim Hoffman
McDonough chr...@plope.com wrote: On 4/11/09 8:10 PM, Tim Hoffman wrote: If someone where coming to the Zope party now and needed the full blown security model and view mechanisms, and the zcml tied to that model what would the choice be going forward? repoze.bfg has pretty much gutted that model

Re: [Zope-dev] who wants to maintain Zope 3?

2009-04-11 Thread Tim Hoffman
T On Sun, Apr 12, 2009 at 11:23 AM, Chris McDonough chr...@plope.com wrote: On 4/11/09 10:20 PM, Tim Hoffman wrote: Hi Chris can I specify security annotations on objects persisted in the zodb as per zope3/zope2 which are over and above the class/view decleration. Yes, for instance

Re: [Zope-dev] who wants to maintain Zope 3?

2009-04-11 Thread Tim Hoffman
Hi Chris On Sun, Apr 12, 2009 at 11:55 AM, Chris McDonough chr...@plope.com wrote: On 4/11/09 11:49 PM, Tim Hoffman wrote: Ok so pretty much the same as the traditional Zope 3 model. Are you still using the 'c' based zope.security or built your own. We don't depend on zope.security

Re: [Zope-dev] several zope.* libs within gae (was ZCML implementations: where should they go)

2009-04-09 Thread Tim Hoffman
Hi Just on the zope in gae. I have been hacking away at getting a core of zope running under gae. (one example is http://baon.appspot.com/ which was a port of an old portal_toolkit/cmf 1.0 site I used as an excercise) I am currently using the following packages app (completely gutted)

Re: [Zope-dev] Dependencies for ZCML

2009-03-17 Thread Tim Hoffman
Hi I would like to chime in here on the zcml I have managed to get a core stack of zope3 running on gae had to hack a lot of zope.security and zope.proxy to get it there, but it all works quite well I found I had to ignore zope.configuration to get most of the base stack working because the

Re: [Zope-dev] RDF Musings and TinyTables

2003-02-20 Thread Tim Hoffman
Hi Shane In case your not aware Chandler OSAfoundation is basing their new PIM on RDF/ZODB/Python etc... if you haven't already it might be worth having a look at how they see RDF fitting into the picture. http://www.osafoundation.org/Chandler_rel._0.1.htm See ya Tim On Wed, 2003-02-19 at

Re: [Zope-dev] Re: [Zope] PCGI?

2003-02-13 Thread Tim Hoffman
Hi I have always run Zope behind Apache utilising mod_proxy. I have to admit I never tried or really even evaluated pcgi, and don't build it when I install Zope. Is there a benefit of pcgi over using mod_proxy ? Rgds Tim Hoffman On Fri, 2003-02-14 at 09:16, Jeff Rush wrote: Having only

Re: [Zope-dev] RE: [Zope] Time module in python scripts

2003-02-06 Thread Tim Hoffman
Hi I wonder why DateTime().parts() results is different to time.localtime(time.time()) or at least returns less info than the latter. It would seem a change to DateTime would be in order ? Tim On Fri, 2003-02-07 at 06:30, [EMAIL PROTECTED] wrote: I hope you all don't mind, but I've moved

Re: [Zope-dev] XMLRPC and Basic Auth problems

2002-08-15 Thread Tim Hoffman
I have lodged a collector issue on this Rgds Tim On Fri, 2002-08-16 at 04:31, Nils Kassube wrote: Casey Duncan [EMAIL PROTECTED] writes: The server returns a 200 response status. Strangly, the response headers do include WWW-Authenticate. So, the xml-rpc code must be changing the

[Zope-dev] XMLRPC and Basic Auth problems

2002-08-14 Thread Tim Hoffman
is acceptable. However because XMLRPC is implemented on top of http, I would have thought a http approach (ie error 401) would be used. It appears that this behaviour is fundamental to Zope and is not an artifact of cookie auth in CMF etc.. Is this really correct behaviour ? Regards Tim Hoffman

Re: [Zope-dev] XMLRPC and Basic Auth problems

2002-08-14 Thread Tim Hoffman
behaviour ? Regards Tim Hoffman ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce

Re: [Zope-dev] XMLRPC and Basic Auth problems

2002-08-14 Thread Tim Hoffman
2002 10:51 pm, Tim Hoffman wrote: I have had further from Adam Megacz [EMAIL PROTECTED] the author of XWT on this issue. I believe I should raise a collector issue on this, however do people believe this is a correct assessment of the situation

Re: [Zope-dev] XMLRPC and Basic Auth problems

2002-08-14 Thread Tim Hoffman
to the general http spec, in which case Zope would not be compliant. -Casey On Wednesday 14 August 2002 11:59 pm, Tim Hoffman wrote: Hi Casey I am using Basic Auth with xmlrpc lib now, and yes it does work with Python2.1 but that's not my point. The XML-RPC spec doesn't talk

[Zope-dev] Re: [Zope-CMF] CMF Usabiltiy

2002-07-15 Thread Tim Hoffman
. Irrespective of whats it's path is, by using the catalog. I find also that an awfull lot of the time the metadata is often sufficient without having to retrieve the object. Regards Tim On Fri, 2002-07-12 at 23:44, J C Lawrence wrote: On 12 Jul 2002 14:43:23 +0800 Tim Hoffman [EMAIL PROTECTED

[Zope-dev] ?determine if x is a string or array in PythonScript

2002-07-11 Thread Tim Hoffman
Hi I must be stupid or something, but I can't for the life of me work out a simple way of determining if a variable contains a string or array, in a PythonScript in Zope. I can't import type and or use type() function. isinstance doesn't work because I can't give a type as the second arg. I

Re: [Zope-dev] ?determine if x is a string or array in PythonScript

2002-07-11 Thread Tim Hoffman
as the method. Also I always thought it terribly inelegant. Should have looked in the source ;-) Thanks again T On Fri, 2002-07-12 at 04:10, Shane Hathaway wrote: Tim Hoffman wrote: Hi I must be stupid or something, but I can't for the life of me work out a simple way of determining

[Zope-dev] Very old version of xmlrpclib.py in Zope has incorrect behaviour

2002-07-10 Thread Tim Hoffman
://collector.zope.org/Zope/465 It appears that the more recent versions of xmlrpclib.py have resolved this problem, so could we maybe look at getting the current stable release of xmlrpclib.py in to Zope 2.6 ? Regards Tim Hoffman ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] Re: Zope logic

2002-05-31 Thread Tim Hoffman
Hi On Fri, 2002-05-31 at 15:14, Toby Dickenson wrote: On Friday 31 May 2002 4:44 am, Tim Hoffman wrote: But whilst you might think acquisition looks like inheritance it isn't Please don't confuse the two, they really are different, and until you think about them differently, I

Re: [Zope-dev] Re: Zope logic

2002-05-31 Thread Tim Hoffman
Hi On Fri, 2002-05-31 at 16:10, Steve Alexander wrote: Tim Hoffman wrote: However the most problems I have had, are with poorly thought out or poorly documented object hierarchies, You mean class hierarchies. Oops, yep, that's what I meant, so that it is not obvious or clear

Re: [Zope-dev] Re: Zope logic

2002-05-30 Thread Tim Hoffman
But whilst you might think acquisition looks like inheritance it isn't Please don't confuse the two, they really are different, and until you think about them differently, I believe you won't necessarily grasp the significance of acquisition, or use it properly. Any

Re: [Zope-dev] Re: [ZPT] Order of attribute execution FeatureRequest

2002-05-09 Thread Tim Hoffman
Hi Just my 2c worth, but I would like to defend order of execution of ZPT. What it does mean for me is I can guaruntee zpt commands will always be processed in a known order irrespective of where you put them in a tag, this I like ;-) What I do miss is else clause but I think it would be

Re: [Zope-dev] ZPT and 'else'

2002-05-09 Thread Tim Hoffman
The big problem with the whole 'else' issue as I see it, is that non coders, using dreamweaver etc.. would no doubt end up with both bit's of html in their template. T On Fri, 2002-05-10 at 11:39, Marc Lindahl wrote: Yecch! Why not: if ... True stuff /if else False stuff /else If

Re: [Zope-dev] Re: [ZPT] Order of attribute execution FeatureRequest

2002-05-09 Thread Tim Hoffman
at 09:07:26AM +0800, Tim Hoffman wrote: Hi Just my 2c worth, but I would like to defend order of execution of ZPT. What it does mean for me is I can guaruntee zpt commands will always be processed in a known order irrespective of where you put them in a tag, this I like ;-) Would

Re: [Zope-dev] A modest proposal: Replace medusa with Twisted

2001-10-11 Thread Tim Hoffman
and differences between C Python and Jython. We've made quite a bit of progress in both of those areas, but there's still more to be done before Zope will fire up and answer a request. Kevin Tim Hoffman Zute Pty Ltd mobile: 0411 06 fax:+61 8 6210 1883 email: [EMAIL PROTECTED

Re: [Zope-dev] Read only ZEO

2001-10-01 Thread Tim Hoffman
done it? Tim Dieter Maurer wrote: Tim Hoffman writes: In some of the overview documents discussing ZEO, there is reference to a ZEO client potentially mounted a ZSS in read only mode. (I want to have some ZEO's in read/write as well) When you start Zope with the -R option (I think, look at z2

[Zope-dev] Read only ZEO

2001-09-29 Thread Tim Hoffman
this I have any idea how I might go about doing such a thing. I ideally I would like to control what clients can connect and whether read only or read/wright by IP and/or some token RGds Tim -- Tim Hoffman Zute Pty Ltd mobile: 0411 06 fax:+61 8 6210 1883 email: [EMAIL PROTECTED