[Zope-Annce] Announce: Vancouver Python Workshop

2006-05-22 Thread Andy McKay
Vancouver Python Workshop
=

Building on the huge success of the 2004 Vancouver Python Workshop, the
Vancouver Python and Zope User Group is pleased to announce the 2006
Vancouver Python Workshop.

The conference will begin with keynote addresses on August 4st. Further
talks (and tutorials for beginners) will take place on August 5th and
6th. The Vancouver Python Workshop is a community organized conference
designed for both the beginner and for the experienced Python programmer
with:

  * tutorials for beginning programmers
  * advanced lectures for Python experts
  * case studies of Python in action
  * after-hours social events
  * informative keynote speakers
  * tracks on multimedia, Web development, education and more


More information see: http://www.vanpyz.org/conference/ or contact Brian
Quinlan at: brian at sweetapp.com

Vancouver
=

In addition to the opportunity to learn and socialize with fellow
Pythonistas, the Vancouver Python Workshop also gives visitors the
opportunity to visit one of the most extraordinary cities in the world
(1). For more information about traveling to Vancouver, see:

http://www.vanpyz.org/conference/vancouver.html
http://www.tourismvancouver.com
http://en.wikipedia.org/wiki/Vancouver

Important dates
===

Talk proposals accepted: May 15th to June 15th Early registration
(discounted): May 22nd to June 30th Normal registration: from July 1st
Keynotes: August 4th
Conference and tutorial dates: August 5th and 6th

(1) http://news.bbc.co.uk/2/hi/business/2299119.stm


--
  Andy McKay
  Enfold Systems
  http://www.enfoldsystems.com
___
Zope-Announce maillist  -  Zope-Announce@zope.org
http://mail.zope.org/mailman/listinfo/zope-announce

  Zope-Announce for Announcements only - no discussions

(Related lists -
 Users: http://mail.zope.org/mailman/listinfo/zope
 Developers: http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] how to get info about an object (dir/type)

2005-06-30 Thread Andy McKay

gabor wrote:

 hi,

 while working with zope, i many times have the following problem:

 i find a method that i can use, and the documentation (for example) says:
 returns the current user.

 ok, but what kind of object is it?
 what methods does it have?

 usually i would simply call dir() or type() on the result object,
 but those are forbidden in zope.

Use of the debug prompt is your friend. On Linux you can do zopectl 
debug, get the object and then dir(), type() it all you want.


We recently released PloneShell which is not actually Plone specific, 
but might be of help:


http://www.enfoldsystems.com/Products/Open/PloneShell

All you need is wxPython and you are up and running ;)
--
  Andy McKay
  Enfold Systems, LLC
  http://www.enfoldsystems.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-05 Thread Andy McKay
Paul Winkler wrote:
yeah, it might be an unpopular change. I dunno.
Anything that forces me to use better style is OK with me ;-)
Ideally we need to set a zope config option that states what HTML 
standard is being rendered too, then all parts that render HTML use 
those conventions. We've found this in Plone where some underlying bit 
of code somewhere in the bowels renders a query string incorrectly for 
example.

Not a trivial job though and probably not worth it. Would also give 
people who run virtual hosting with multiple sites a bit of a fit.
--
  Andy McKay
  ClearWind Consulting
  http://www.clearwind.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Andy McKay
Marc Lindahl wrote:
If you're using Plone, it monkeypatches Image.tag().  Caused me to add 
an Image.pil_tag() monkeypatch to my monkeypatch ImageTag_CorePatch :)
Oh I wish we could get that into Zope so it actually puts out an image 
tag *by default* without a border. Sigh.
--
  Andy McKay
  ClearWind Consulting
  http://www.clearwind.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Andy McKay
Paul Winkler wrote:
Eh? I'm not sure what you want. No border attribute,
or border=0?
[snip]
If you want to force no border attribute, you can pass it
a false value.
No border attribute at all.

In Zope you have to specify you dont want a border you have to call 
tal:image replace=python: here.some_jpg.tag(border=0). What we want 
to do in Plone is this: tal:image replace=here/some_jpg.

Much easier, more readable and probably faster.

Plone does the opposite - the monkeypatch causes there to be
no border attribute unless you ask for one.
Right because the border attribute is not standards compliant, and is 
deprecated. So this way if you don't want to meet standards, great go fo 
it, but otherwise you'll get the right tag.

For more information on that, ask the Plone UI guys they were the ones 
who asked me to do this somehow. Borders should only be done in CSS.

So you leave it out and then you wrap your image in an a
tag and every freakin' browser puts a border around it. Blah.
I prefer Zope's default to Plone's.
That's what CSS is for and that's why it will probably never go into the 
core - let's break everyone's images folks...
--
  Andy McKay
  ClearWind Consulting
  http://www.clearwind.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope 2.7 broken on Windows

2004-01-06 Thread Andy McKay
Tim Peters wrote:
[Andrew Veitch]

http://collector.zope.org/Zope/1128

Not being able to use the calendar module on Zope 2.7 breaks our
MailManager and more importantly the CMF!
I think the ClearWind Windows Installer works just fine, its built in a 
totally different manner from Zope Corps., Plone built from the same 
base works fine anyway. Its a beta installer, havent got much feedback, 
so be warned :)

http://www.clearwind.ca/zope
--
  Andy McKay
  ClearWind Consulting
  http://www.clearwind.ca
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] How to get 4 Random DTML Documents

2003-11-08 Thread Andy McKay
As per the footer on every message.

 **  No cross posts or HTML encoding!  **

And the zope-dev channel is for the development of Zope.
--
  Andy McKay
  ClearWind Consulting
  http://www.clearwind.ca
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope .NET

2003-10-23 Thread Andy McKay

So could please somebody give me a short briefing
about the current state of Zope for .NET?
There is no state. ActiveState released Python for .NET and that's about 
it. Quoting Python for .NET is an exploratory implementation of the 
Python language 
(http://www.activestate.com/Corporate/Initiatives/NET/Research.html)

That is still a long way from being anything like Zope for .NET 
(whatever that really means)
--
  Andy McKay
  ClearWind Consulting
  http://www.clearwind.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Initial ZODB permissions

2003-10-08 Thread Andy McKay
Where is the initial code for setting permissions in the ZODB? It looks 
like the Copy or Move permission is give to Anonymous by default at 
ZODB creation in Zope, which is ahem wrong.

Cant find the code that sets that up though, can anyone throw me a clue 
stick that grep can't?

Thanks.
--
  Andy McKay
  ClearWind Consulting
  http://www.clearwind.ca
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Initial ZODB permissions

2003-10-08 Thread Andy McKay
Sure enough as soon as I email the list I remembered permissions can be 
declared anywhere, one grep more and there it is in CopySupport.py, 385:

class CopySource(ExtensionClass.Base):
Interface for objects which allow themselves to be copied.
# declare a dummy permission for Copy or Move here that we check
# in cb_isCopyable.
__ac_permissions__=(
('Copy or Move', (), ('Anonymous', 'Manager',)),
)
Of course you need to be able to paste... so may not be a huge problem, 
just looks wrong :)
--
  Andy McKay
  http://www.agmweb.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Initial ZODB permissions

2003-10-08 Thread Andy McKay
Yeah, wrong but toothless. Feel free to fix on appropriate branches I 
guess :-)
Well yeah but Im betting its there for a reason, I just dont know what 
it is yet. Changing that is sure to break something...
--
  Andy McKay
  ClearWind Consulting
  http://www.clearwind.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Caching Policy Manager (Was: Caching prob with AHCM and headers)

2003-09-25 Thread Andy McKay
This thread and an application for a client has meant i've started to 
formulate a replacement for Caching Policy Manager. From the way I see 
it all the functionality in CPM (Vary etc) should be rolled into AHCM.

CPM should then just be very simple set of policies that using a 
predicate point to a cache. Which could be an AHCM, or a Ram Cache or 
another cache. Admittedly Ram Cache is not something you'd normally want 
to do for CMF content, but there other caching options.

Then we'll have one much more functional AHCM rather than two seperate 
cache managers trying to almost the same thing... and a much more 
flexible and pluggable cacheing strategy.
--
  Andy McKay
  http://www.agmweb.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Caching Policy Manager (Was: Caching prob with AHCM and headers)

2003-09-25 Thread Andy McKay
RAM caching is useful for subtemplates.  I am not convinced that we
should think of resource level caching (AHCM or Andy's bake-to-disk
on the fly solution) in the same framework as the tools like RCM, which
are much better suited for caching intermediate results, but don't scale
well for entire pages.
RCM is an odd caching system that suits a particular need. Is that a no, 
this shouldn't be done or just a comment?
--
  Andy McKay
  http://www.agmweb.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] 2.6 - 2.7 upgrade

2003-09-19 Thread Andy McKay
Anyone got a bright idea how to upgrade users from 2.6 to 2.7? Im 
specifically thinking via the Windows installer here.

A few files (probably) have to be moved around, no problem.
Specifically Im thinking a users command line switches have to be turned 
into a ZConfig file.

Fortunately for Plone I can read the registry and convert into a 
ZConfig, but no idea what the Zope Corp installer will do... I basically 
see that there is no automated upgrade. Back it up, install the new one 
and then read the docs...
--
  Andy McKay
  http://www.agmweb.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Will restrictedTraverse() load every obj into memory?

2003-09-17 Thread Andy McKay
Yes, thats what the catalog is for.

[EMAIL PROTECTED] wrote:
Hello,

I have a function that returns the object when given a path.

def path2Object(path):
obj = context,restrictedTraverse(path)
return obj
My concern is whether restrictedTraverse(path) will load into memory every
object it traverses through and thus increase memory usage, especially if
it is run very frequently and with different path each time.
e.g. if my path is '/x/y/z/myobj',  will object x, y, and z also get loaded
when the object I really want is myobj? What's the state of x,y,z after
calling restrictedTraverse(path) - loaded or ghost?
If intermediate objects (like x, y, z above) get loaded, is there anyway to
ghostify them to reduce memory usage?
...or is there a memory-economic way to get object by path?
Many thanks!

cheers,
Zhi Min


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

--
  Andy McKay
  http://www.agmweb.ca
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Add Plone Site - AttributeError

2003-09-09 Thread Andy McKay
This is the Zope development list for the discussion of Zope 
development. Please try asking the Plone list where the solution is 
mentioned many times

You are trying to use CMF 1.4. Use CMF 1.3.1 as stated in the docs.

Robert Van Overmeiren wrote:
Hello,

I've added Plone 1.0.5 to my Zope 2.5.1 setup running on Suse Linux. When I
try to add a Plone site, I get a Zope Error:
Error Type: AttributeError
Error Value: get
I also installed Zope 2.6.1 with CMF and Plone on a Windoz 98 box and I get
the same error when adding a Plone Site.
I have Zope running on port 8081. Does that have any effect?

I've seen numerous postings and bug reports on this type of issue, but no
solutions. Is there a solution?
Thx,
Bob V
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

--
  Andy McKay
  http://www.agmweb.ca
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Help!!

2003-08-28 Thread Andy McKay
 Thanks, however I've searched the mailing lists and found nothing.

Wow really?

http://www.google.ca/search?q=regsub.py%3A15%3A+DeprecationWarning+zope

Something else is causing your problem then. What that might be, we need 
more information.
--
  Andy McKay
  http://www.agmweb.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope 2.7 Timeline

2003-08-17 Thread Andy McKay
Also the Plone Windows controller rocks, and I'd like to ship
something like it with Zope itself.  But a) I don't know it's
licensing disposition (we can't ship GPL'ed code with Zope AFAIK) and
b) it will need to change a lot due to the install and config changes
in 2.7+.
Im not trying to maintain the Controller any more, mostly because I dont 
really enjoy trying to faff with MFC code. I've tried to get a gui 
controller started using wxPython a few times, but ran out of steam 
before I get anywhere a few times.

Either way the Controller does too much work that is now done in 2.7, 
I'd like it to:

- talk to the tools in bin to create new instances (it tried to do its 
own thing)

- talk to ZEO

- read and write the ZConfig file

So, anyway, if there's any way we can work together on the installer
or controller stuff, I'd be very happy.  You know more about this shit
than I do. ;-)
Likewise, when, how or what - I dont know.

Here's what I know still need to do:

  - figure out how to get event/access log rotation to work (sigusr2
definitely wont work ;-)
  - provide a better default config file for Windows (backslashes
instead of slashes).
  - Log startup tracebacks when running as a service to the Windows
event log.
Dont we use the logging module now? Can we just plug in the 
NTEventHandler? I haven't looked at 2.7 so guessing.
--
  Andy McKay
  http://www.agmweb.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Zope 2.7 Timeline

2003-08-16 Thread Andy McKay
This is a really silly question but I'll try...

Anyone got any idea when 2.7 might be ready? I building installers now 
and trying to judge which will come first a working 2.7 version, or the 
working code. I'd love to use 2.7 if its working so Im taking that risk...
--
  Andy McKay
  http://www.agmweb.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope 2.7 Timeline

2003-08-16 Thread Andy McKay
Currently
this is low-priority for Zope Corporation while we dig out of customer
work, but will likely become higher priority very soon a we have at
least one customer moving towards 2.7.  In the meantime, it's a
volunteer effort.
Okey doke, that tells me Plone 1.1 will probably get there first then :)

If you're willing and able to collaborate on installer stuff, please
let me know, as I have already automated a buildout and packaging
process for Zope 2.7+ both for RPM-based systems and for Windows via
Innosetup.  I can check the Windows stuff into a public repository if
you're interested.
I've already got an automated setup for Plone and I had one for Zope 3 
(im sure its somewhere), I was doing one for Zope 2.7. Partly to take 
the pressure of Zope Corp., I know the 2.6.x windows installer and 
releases is a pain - partly to do a rather fatter bigger value added 
installer :)
--
  Andy McKay
  http://www.agmweb.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope 2.7 Timeline

2003-08-16 Thread Andy McKay
the pressure of Zope Corp., I know the 2.6.x windows installer and
releases is a pain - partly to do a rather fatter bigger value added
installer :)
Well, I'd understand if you want the value to be added to Plone, but
it would be nice if some of the value trickled back down into Zope at
least a little bit. ;-)
Hey it is, we'll have two Windows Installers soon, plus a new controller.

So if you're interested I've checked the Windows buildout software
into cvs.zope.org into Packages/WinBuilders.  The buildout software
included makes it much less painful to build binaries quickly.
Cool, thanks.
--
  Andy McKay
  http://www.agmweb.ca
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope 2.7 Timeline

2003-08-16 Thread Andy McKay
Andy McKay wrote:
the pressure of Zope Corp., I know the 2.6.x windows installer and
releases is a pain - partly to do a rather fatter bigger value added
installer :)


Well, I'd understand if you want the value to be added to Plone, but
it would be nice if some of the value trickled back down into Zope at
least a little bit. ;-)
Oh by the way my Plone code is in Installers/pwi of the Plone cvs, looks 
pretty similar to your iss stuff though ;)
--
  Andy McKay
  http://www.agmweb.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Memory Error

2003-06-23 Thread Andy McKay
There we go, occurred again.

Its definitely the manipulating of catalog results, all the crashes are 
happening on zcatalog searches. There is over 530 Megs of Memory free at 
the time.

But like I say its never occuring my other boxes so time to whip out 
some unit tests and the like ;)
--
  Andy McKay
  http://www.agmweb.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Memory Error

2003-06-18 Thread Andy McKay
Thanks for the responses everyone.

This message occured more frequently when I was showing the 
getNewOrRandom slot which does a few catalog searches and mucks them 
around. I've turned off that slot and setup a nightly restart cron.

I'm waiting for it to happen again (it hasn't yet), but it looks like 
the BTrees and Catalog results could be a place to start.

Its got a gig of ram and about 500 mb is free most of the time 
apparently, but next time it happens I'll see if I can get more info.

Just have to hurry up and wait now ;) Or wait for runyaga to visit it, 
he seems to have this curse with it.
--
  Andy McKay
  http://www.agmweb.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Memory Error

2003-06-17 Thread Andy McKay
If you've visited ZopeZen you might have noticed this lovely error that 
seems to occur intermittently..

[snip rest of traceback]
* Module Products.CMFCore.CatalogTool, line 214, in searchResults
* Module Products.ZCatalog.ZCatalog, line 619, in searchResults
* Module Products.ZCatalog.Catalog, line 732, in searchResults
* Module Products.ZCatalog.Catalog, line 480, in search
* Module Products.PluginIndexes.common.UnIndex, line 365, in 
_apply_index
* Module ZODB.Connection, line 534, in setstate

MemoryError: (Also, an error occurred while attempting to render the 
standard error message.)

Its:

Zope 2.6.1 (source release, python 2.1, linux2)
python 2.1.3
openbsd3
I believe all the appropiate python stack patches are applied.

Any ideas?
--
  Andy McKay
  http://www.agmweb.ca
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: Memory error

2003-06-17 Thread Andy McKay
MemoryError: (Also, an error occurred while attempting to render the 
standard error message.)
Hmmm. Maybe some FreeBSD patch will fix your problem. The current FreeBSD
/usr/ports/lang/python21/files has the following files:
Thanks Pieter I'll take a look. This site was fine on Linux on Windows 
servers before so I believe its platform related.
--
  Andy McKay
  http://www.agmweb.ca

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


RE: [Zope-dev] Versions: should they die?

2003-06-06 Thread Andy McKay
Im not keeping up on zope-3 at the moment, whats the plan for versions
there? Just wondering if there is any great solution there that can be
backported.
-- 
  Andy McKay


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Versions: should they die?

2003-06-06 Thread Andy McKay
 I think that will only work if there's a Version with the specified name.

Nope. One of the joys of Versions is that there is almost zero error
checking - you can put content into a non-existant / deleted / moved
version. And then you can't get it out. 

It really sucks when you are using more than one zope in the same domain
that has versions, and lo and behold you start get objects locked in the
other zope's version ;)

The joy. 
-- 
  Andy McKay


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Versions: should they die?

2003-06-04 Thread Andy McKay
 IMO versions do nothing except complexify the code.  I believe it's an
 official Zope Corp position to discourage them for new projects.  Yet
 Jeremy Hylton seems to think that they are somehow useful and has
 carefully preserved them in ZODB 4 (== Zope 3).  If it were up to me,
 they would have been gone, with a big helping of YAGNI!

I think its worth pointing out that the main part of the problem with
versions is how they are implemented in Zope 2, not as they exist in the
ZODB. It might be fine and useful in the ZODB, in fact I remember some
use cases Jeremy pointed out that did sound useful.

The main problem really is the Zope implementation for example: you can
lock any object in a version that doesn't exists, it uses cookies,
trouble committing... etc.
-- 
  Andy McKay


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] XMLRPC with varargs

2003-03-20 Thread Andy McKay
But I was talking only about implementation of server side function and,
I think, it is possible use python specialities without desagree XMLRPC
cross language technology. In this case, only '*' arguments.
If I make a call like Foo( 1, 2 )

The server side implementation could be

def Foo( a, b )

or

def Foo( *a )
I think that is a valid point. However I would enter a bug into the 
collector and add the patch there.

Otherwise it will get lost in the traffic that is the mailing list and 
no action will happen.

Thanks
--
  Andy McKay
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Authenticating with acl_users (fwd)

2003-03-09 Thread Andy McKay
Sondre Rønjom wrote:
I'm creating a python product - which needs to be authenticated; and I 
dont want to use any products that does not come with a clean Zope install 
- so I user Simple User Folder and define two roles admin user and 
ordinary user. I just want a user to login via login form, check username 
and password with the acl_users user list and set the user to 
AUTHENTICATED_USER if username and password is correct. Actually I just 
want to access the methods which the pop-up authenticator use when one 
does /manage.  To me it looks like validate() from AccessControl/User.py does this for you, but Im not 
sure how to use the method.  
Zope by default comes with Basic Auth. If you want to do cookie / form 
based logins either:

a) use the Cookie Crumbler product

b) take the Cookie Crumbler code, pull it apart and put it in your 
product so you can have your clean install.
--
  Andy McKay

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Declaring Dependencies for XML documents (Was: HowTo Improve Cache Coherency for RAM/Disk Cache Manager...?)

2003-03-04 Thread Andy McKay
Anyway, after talking this over with my colleague, I realize that
the problem of *deriving* dependencies is fundamentally undecidable.
We might be able to figure it out in the case of simple acquisition,
like
span tal:replace=here/aObject/aMethod/
But it is hopeless for pure python:
span 
tal:replace=python:I-can-do-anything-and-you-cant-stop-me(REQUEST)/
:)
Well you could, in theory, hook every object as CallProfiler does and 
then you would know for each request what object was called and Cache 
it. You could even do something really clever like using CallProfiler 
automatically cache objects that took longer than a certain amount of 
time...

But there are more issues with that than there are days in a year and 
you could be writing that code forever, letting the user figure it out 
manually is an easier choice.

Cheers.
--
  Andy McKay
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] How to trigger Zope externally (mail)

2003-02-26 Thread Andy McKay
Or just write a simple HTTP post using Python. Have a look around for 
the MailIn Product, or CMFMailIn which does this very simply and works 
fine for low volume traffic (eg: fine listening to [EMAIL PROTECTED]).
--
  Andy McKay

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


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

2003-02-14 Thread Andy McKay
RewriteRules, and to a lesser extent, ProxyPass, has almost completely 
replaced any CGI method with Apache. However, I don't know the status 
with other servers, primarily IIS, so I think it shouldn't be dropped 
completely.

Good point regarding IIS. I think its possible to make the ASP 404 
script best practice with IIS now (thanks to Leonardo 
http://www.zope.org/Members/hiperlogica/ASP404). As long as we make PCGI 
available there should be no problem.
--
  Andy McKay


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


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

2003-02-13 Thread Andy McKay
But mostly I thought PCGI (and FastCGI) was the preferred way, since it 
is covered in detail in Zope's doc/WEBSERVER.TXT and neither mod_proxy 
nor mod_redirect are mentioned in there. ;-)

Unfortunately thats more a matter of documentation inertia more than 
anything. There are more articles on Zope.org about PCGI as well simply 
because it has been around the longest, although almost everyone I know 
runs through mod_proxy nowadays.
--
  Andy McKay


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Python core dump zope 2.6.1+CMF1.3

2003-02-12 Thread Andy McKay
Well, the others seeing the problem are *not* running FreeBSD.
I was able to confirm that one saw it with Windows2000.  Not
sure about the others at the moment.


Sorry mate, we've got ours (Win and Mac OS X) fixed. Our CMF was what 
out of whack with an attempted patch to FSObject.py. Our issue wasn't 
2.6.1 related.
--
  Andy McKay


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope Server Control

2003-02-10 Thread Andy McKay
You misunderstand: I have zero code. :-)  The screenshot (especially the
second one) shows precisely what I'm looking for in a Zope controller.  
It should scale up to dozens of Zopes and ZEOs while remaining useful for
single Zope instances, it should display rapidly flashing lights to
indicate exactly how resources are being spent, and it should display a
Zope logo so it doubles as a marketing tool.  Consider the screenshot a
request.

Ah sorry I thought you would have just quickly knocked one out ;) I 
think the Controller is a very useful tool and very good for marketing 
its really helped a lot of people with Plone.

I can post the QT .ui file, though, if that would help. ;-)


Im hopefully getting a good UI designer (ie not me) on line for helping 
out with the UI for this. I was actually thinking of wxPython rather 
than Qt, but thats just a personal preference.

Anyway when we get wxController going I'll drop you a line...
--
  Andy McKay


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope Server Control

2003-02-08 Thread Andy McKay
It's not fancy, but it's complete: you can watch and control multiple
servers from a single place.  The flashing yellow LED-like indicators
would give you a great deal of confidence that information is flowing.  
It sure would be appealing.  Anyone want to take this on? :-)

Yes :)

1. There are already a few like this around, the ZopeController from 
Richard Jones which Plone uses an modified version of... there is one 
for another product as well although the name escapes me.

2. We (as in Plone team) have for 1.1 a main requirement to move to a x 
platform controller that can do that and much more. wxController as it 
has been dubbed hasn't been started yet but Im tasked with writing the 
PLIP now 1.0 has been done.

3. I've found at least two companies that run many, many zope servers on 
remote boxes all over the place and would like one ui to see the status 
of them all, I'm trying to see if i can get some $ out of them for the 
development :)

So is there a public cvs for your code can we mangle all our stuff together?
--
  Andy McKay


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] XMLRPC client and Zope 2.6.0

2003-01-24 Thread Andy McKay
s = Server('http://localhost')

try:

s = Server('http://localhost/')

And read the xmlrpclib.py docs where it automatically appends RPC2 if 
the url doesnt end in a slash.
--
  Andy McKay


___
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
http://lists.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: [Zope-Checkins] CVS: Zope/lib/python/TAL-TALInterpreter.py:1.69.6.10

2002-12-23 Thread Andy McKay
 Thanks a lot. However it doesn't test the case you describe below, does
 it?

Its just tests that a  is always escaped.

(And if it's a fix it should be in HEAD too.)
 
  Why?

 Well, because otherwise 2.7 won't have the fix :-)

Really, so all the changes and bug fixes done for 2.6.1 have to be put in
HEAD too? Thats a pain.
--
  Andy McKay


___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Re: [Zope-Checkins] CVS: Zope/lib/python/TAL - TALInterpreter.py:1.69.6.10

2002-12-22 Thread Andy McKay
Collector number 735: http://collector.zope.org/Zope/735

This was prompted by some bugs people found with Plone. For a two character
fix that to me looked like a simple oversight I didn't bother with a unit
test.
--
  Andy McKay

- Original Message -
From: Florent Guillaume [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, December 22, 2002 11:01 AM
Subject: [Zope-dev] Re: [Zope-Checkins] CVS: Zope/lib/python/TAL -
TALInterpreter.py:1.69.6.10


 What prompted this? What does it fix?
 I don't see that quotes need escaping here.
 Also, there should be a unit test for it.
 (And if it's a fix it should be in HEAD too.)

 Florent

 In article [EMAIL PROTECTED] you write:
  Modified Files:
Tag: Zope-2_6-branch
  TALInterpreter.py
  Log Message:
  Escape quotes correctly
 
 
  === Zope/lib/python/TAL/TALInterpreter.py 1.69.6.9 = 1.69.6.10 ===
  --- Zope/lib/python/TAL/TALInterpreter.py:1.69.6.9 Wed Oct  9 10:37:38
2002
  +++ Zope/lib/python/TAL/TALInterpreter.py Tue Dec 17 19:33:43 2002
  @@ -486,7 +486,7 @@
   if text is self.Default:
   self.interpret(stuff[1])
   return
  -s = escape(text)
  +s = escape(text, 1)
   self._stream_write(s)
   i = s.rfind('\n')
   if i  0:


 --
 Florent Guillaume, Nuxeo (Paris, France)
 +33 1 40 33 79 87  http://nuxeo.com  mailto:[EMAIL PROTECTED]

 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )


___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] CRITICAL!!!! CVS: Zope/lib/python/OFS - Image.py:1.141.4.3

2002-12-17 Thread Andy McKay
I think I know whats happened here, my earlier check in for that patch,
changes SetBase in ZPublisher so it works. However that patch went in
without a branch.

http://lists.zope.org/pipermail/zope-checkins/2002-December/020453.html

I did a cvs up -r Zope-2_6-branch -d before the check in, but probably
didn't notice the following error, this is causing my cvs up to die and
hence ZPublisher doesn't get the branch:

cvs [server aborted]: could not find desired version 1.2 in
/cvs-repository/Zope
/lib/python/Signals/SignalHandler.py,v

Anyone else getting that? Anyway if I could get this checked out correctly
its just a matter of getting that patch in to the correct branch.

Sorry Paul.
--
  Andy McKay

- Original Message -
From: Casey Duncan [EMAIL PROTECTED]
To: Guido van Rossum [EMAIL PROTECTED]; Maik Jablonski
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 6:27 AM
Subject: Re: [Zope-dev] CRITICAL CVS: Zope/lib/python/OFS -
Image.py:1.141.4.3


I will go ahead and roll-back this change. Doing it now.

-Casey

On Tuesday 17 December 2002 08:03 am, Guido van Rossum wrote:
  BIG PROBLEM WITH THIS CHECK-IN FROM YESTERDAY: I've updated my ZOPE and
  now all Images are broken!!! ZOPE lives behind a SQUID.
 
  I think that
 
  RESPONSE.setBase(None)
 
  is NOT a good idea at all!!! Commenting this out and all works as
  expected...

 Indeed -- the nightly unit tests also pointed this out.

 --Guido van Rossum (home page: http://www.python.org/~guido/)

 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )



___
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
 http://lists.zope.org/mailman/listinfo/zope )


___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] CRITICAL!!!! CVS: Zope/lib/python/OFS - Image.py:1.141.4.3

2002-12-17 Thread Andy McKay
Well there you go, I deleted my sandbox and did clean cvs checkout and it
seems to have updated correctly. I've put back Paul's patches as he
originally intended them to be.

Sorry about that.
--
  Andy McKay


___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Web Services Sprint???

2002-12-04 Thread Andy McKay
Yes. Where are you located? I was thinking of organizing a west coast US
sprint...
--
  Andy McKay

- Original Message -
From: Eric Roby [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 04, 2002 4:27 AM
Subject: [Zope-dev] Web Services Sprint???


 There has been a (tiny) bit of chatter (over the last couple of months)
 regarding the status of Web Services in Zope.  Would anyone be
 interested in focusing the chatter into a full blown sprint?  We have at
 least three developers (here) that would be very interested.

 Eric


 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )


___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Web Services Sprint???

2002-12-04 Thread Andy McKay
 We'd also be willing to host the WS sprint here in VA if that helps -
 though New Orleans sounds like a lot more fun! :^)

Eric you didn't specify the Zope version, most sprints are for zope 3 and we
could do a bigger sprint then. I think any Web Services sprint for Zope 2 or
3 would be pointless without Brian ;)

A lot warmer too ;)
--
  Andy McKay


___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [ZODB-Dev] Re: [Zope-dev] Contents of Initial Data.fs in Zope Distribution?

2002-11-14 Thread Andy McKay
Whilst we are on the subject, I now ship the Plone Windows Installation (and
I think the Mac) without a ZODB, it monkey patches
OFS.Application.initialize to add in the Plone stuff on start up. This lets
us do some neat stuff and make a smaller download.

Im not sure how zope 3 does it, but I was hoping to make the scripts that
get run to initialise a ZODB a zcml parameter so that all I would do alter
the zcml file to load up the db.

 Zope2-Plone

Is anyone willing to help on this rpm? We only have deb's at the moment. Any
help would wonderful ;)
--
  Andy McKay
  www.agmweb.ca



___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Web Services for Zope; what happened?

2002-11-01 Thread Andy McKay
 I wondered about that.  I have been following some of the dialog on the
Zope
 3 dev list but it is unclear to me its status.  We (my office) would like
to
 have the Web Services capability by July/August time frame (earlier if
 possible), so don't know if that falls in line with a stable Zope 3.  Your
 thoughts...

I dont know enough about Zope 3 to be able to tell you that. And Im not sure
anyone else can either. Perhaps see how the alpha of Zope 3 goes and if you
have to make a decision leave it as long as possible. It should be able work
do it in either, it would just be more messy integration in Zope 2, thats
all :)
--
  Andy McKay
  www.agmweb.ca



___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Web Services for Zope; what happened?

2002-10-31 Thread Andy McKay
I got a hacked together version of WebServices sort of working at
ActiveState at the around the same time Brian was working on that code. I
think its still working, but its no where near complete:
http://aspn.activestate.com/ASPN/Syndication. Unfortunately you'd have to
smile sweetly at ActiveState to get the code from them, if a quick toy,
hacky implementation is all you need that might be the way.

I'd really like to look at WebServices for Zope 3, perhaps it is one area I
can help. Part of the problem I think was that Web Services did not slot
into Zope 2 nicely especially with the automagical nature of things like
XMLRPC. The Zope3 View architecture seems to be the way to go and provide a
good opportunity for this.

 There is not currently (or at least there wasn't
 last I checked) a drop-in library for this that exposed what I
 felt would be needed, and I definitely don't have the time to
 implement one :)

I haven't looked at ZSI for a while but as I think that was the most
promising package at the time.

But I'm not promising or commiting to anything because if I do it's doomed
not to happen.
--
  Andy McKay
  www.agmweb.ca



___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Web Services for Zope; what happened?

2002-10-31 Thread Andy McKay
 What I am able to offer is 1-2 fulltime software engineers for as long as
it
 takes  to do this right.  I have read your proposal (just after you
released
 it last year) and thought it very well done.  I like the implementation
you
 describe and agree with your proposal 100%. The time frame that I am
talking
 about (fulltime developer support) is beginning in January.  If it is
 possible to get some preliminary stuff out of the way before hand, that
 would be great.  If it would require some face time with you, that would
be
 possible as well.

If its in Jan. would looking at Zope 3 be a better idea?
--
  Andy McKay
  www.agmweb.ca



___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Proposal: Improving ZSQL Methods

2002-10-17 Thread Andy McKay
 (b) How would this work in practice?

Make a RAM Cache Manager, and then assign the ZSQL Method to cache in that
cache manager, just like you would any other object. The results are then
cached according to the database connection and the query in the RAM Cache
Manager.

It means we have a much more flexible and powerful caching mechanism
available that is not thread specific.
--
  Andy McKay
  www.agmweb.ca



___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] How can I find out who visited a URL within my Zope Product?

2002-10-08 Thread Andy McKay

 Can anyone think of a way this could be done?

Parse your weblogs at the end of each day?
--
  Andy McKay
  www.agmweb.ca

- Original Message -
From: Craeg K Strong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 08, 2002 2:48 PM
Subject: [Zope-dev] How can I find out who visited a URL within my Zope
Product?


 Hello:

 I would like to log the identity of the authenticated
 user for *every* URL traversal within my Zope Product.

 For example, let's say that my forms-based web application contains 50
 screens.  They are all protected such that only authenticated users
 can view them.  Any one of them could be bookmarked, so a user could
 jump in at any point.

 I want to record the fact that a user visited a screen, each and every
 time they do so.

 A natural place to do this would be in a pre-traversal hook, but I seem
 to be stymied by the lack of authentication information in
__bobo_traverse__
 or __before_publishing_traverse__

 Can anyone think of a way this could be done?

 I suppose I could hack all of my ZPTs to call a registerUser method
 by putting it in an empty span in their shared header, but that seems
 to mix concerns.  Why should my ZPTs have knowledge of this workflow
 requirement?

 Thanks in advance!

 --Craeg


 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] How can I find out who visited a URL within my Zope Product?

2002-10-08 Thread Andy McKay

An Access Rule doesnt let you find the authenticated user check this post a
few weeks ago:

http://lists.zope.org/pipermail/zope-dev/2002-September/017596.html
--
  Andy McKay
  www.agmweb.ca


- Original Message -
From: Tim McLaughlin [EMAIL PROTECTED]
To: Craeg K Strong [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 08, 2002 3:12 PM
Subject: Re: [Zope-dev] How can I find out who visited a URL within my Zope
Product?


 Much easier and nicer is to use an Access Rule  (look in the Add
drop-down).

 Tim

 Craeg K Strong wrote:
  Hello:
 
  I would like to log the identity of the authenticated
  user for *every* URL traversal within my Zope Product.
 
  For example, let's say that my forms-based web application contains 50
  screens.  They are all protected such that only authenticated users
  can view them.  Any one of them could be bookmarked, so a user could
  jump in at any point.
 
  I want to record the fact that a user visited a screen, each and every
  time they do so.
 
  A natural place to do this would be in a pre-traversal hook, but I seem
  to be stymied by the lack of authentication information in
  __bobo_traverse__
  or __before_publishing_traverse__
 
  Can anyone think of a way this could be done?
 
  I suppose I could hack all of my ZPTs to call a registerUser method
  by putting it in an empty span in their shared header, but that seems
  to mix concerns.  Why should my ZPTs have knowledge of this workflow
  requirement?
 
  Thanks in advance!
 
  --Craeg
 
 
  ___
  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
  http://lists.zope.org/mailman/listinfo/zope )

 --
 Tim McLaughlin
 Chief Technology Officer
 Siteworx, Inc... Set your site on the future!
 703.390.5421


 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] I smell commercial interest: PLOPE

2002-10-03 Thread Andy McKay

Please don't post in HTML. Oh wait you're a bot / script.

We thought Plop was a better name that Plope btw ;)
--
  Andy McKay
  www.agmweb.ca


- Original Message -
From: Diogenese Teufelsdrockh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 03, 2002 10:33 AM
Subject: [Zope-dev] I smell commercial interest: PLOPE


 I agree with you James.  To anyone who considers the plausibility of Zope
and Plone merging; consider these facts:
 As they look over the world's painful panorama of war and terror, some
people conclude that it is too late, that no amount of information or
activity could possibly break the mold and stray from the path of
conventional wisdom. But those who take that pessimistic view understand
neither PLOPE Corporation nor its current rung on the ladder to total power.
In the text that follows, I won't bother discussing the flaws in PLOPE
Corporation's logic, because it certainly doesn't use any logic. If our goal
is to discuss the relationship between three converging and ever-growing
factions -- lackluster, feckless devotees of conspiracy theories, jejune,
childish ethically bankrupt-types, and rash lunatics -- then we must
consider various means to that end. Because epididymodeferential is a word
that can be interpreted in many ways, we must make it clear that the biggest
difference between me and PLOPE Corporation is that PLOPE Corporation wants
to make bribery legal and part of business as usual. I, on the other hand,
want to sound the bugle of liberty.

 This is sufficiently illustrated by the ridicule with which PLOPE
Corporation's ethics are treated by everyone other than the worst types of
mean-spirited deadbeats I've ever seen. That, in itself, will condemn us to
live with the most imperious yobbos you'll ever see in the coming days. I
don't need to tell you that most of us are now painfully aware of PLOPE
Corporation's batty slogans. That should be self-evident. What is less
evident is that PLOPE Corporation wants nothing less than to develop a
Pavlovian reflex in us, to make us afraid to shatter the adage that freedom
must be abolished in order for people to be more secure and comfortable. Its
shills then wonder, What's wrong with that? Well, there's not much to be
done with bitter Machiavellians who can't figure out what's wrong with that,
but the rest of us can plainly see that you don't need to be a rocket
scientist to detect the subtext of this letter. But just in case it's too
subliminal for some, let me thrust it into your face right here: If PLOPE
Corporation continues to drag everything that is truly great into the
gutter, crime will escalate as schools deteriorate, corruption increases,
and quality of life plummets. PLOPE Corporation pompously claims that all
major world powers are controlled by a covert group of insiders. That sort
of nonsense impresses many people, unfortunately. This is equivalent to
saying that many people are shocked when I tell them that we must speak
neither of the past nor of the far future but rather focus on the here and
now, specifically on the daunting matter of PLOPE Corporation's
quasi-unstable, churlish treatises. And I'm shocked that so many people are
shocked. You see, I had thought everybody already knew that if you read
between the lines of PLOPE Corporation's canards, you'll unmistakably find
that PLOPE Corporation's apparatchiks maintain that PLOPE Corporation is
the one who will lead us to our great shining future. First off, that's a
lousy sentence. If they had written that PLOPE Corporation has an utter
disregard for human life, then that quote would have had more validity. As
it stands, PLOPE Corporation's cop-outs are continually evolving into more
and more dishonest incarnations. Here, I'm not just talking about evolution
in a simply Darwinist sense; I'm also talking about how PLOPE Corporation's
lapdogs allege, after performing shoddy research and utilizing threadbare
scholarship, that a number of their enemies are planning to infringe upon
our most important constitutional rights. Don't make the mistake of thinking
otherwise. PLOPE Corporation does, and that's why in order to solve big
problems with it, we must first understand these problems, and to understand
them, we must end its control over the minds and souls of countless people.

 Speaking of which, PLOPE Corporation says that the rest of us are an
inferior group of people, fit only to be enslaved, beaten, and butchered at
the whim of our betters. That's a stupid thing to say. It's like saying that
women are crazed Pavlovian sex-dogs who will salivate at any object even
remotely phallic in shape. I'm not the first to mention that to believe that
PLOPE Corporation answers to no one is to deceive ourselves. So you see,
PLOPE Corporation couldn't encourage every sort of indiscipline and
degeneracy in the name of freedom if its life depended on it, which it
doesn't.

 Yours,

 Diogenese Teufelsdrockh

Re: [Zope-dev] Integrating ZEO with Zope 2.7

2002-10-02 Thread Andy McKay

 Is there anybody who thinks this is a bad idea?

Great idea, but this could also be a chance to fix the windows z2.py thang
and the installer ;)

As long as standalone Zope without ZEO would still be a startup option, Im
sure there are more things out there like the Plone Controller that might
take a while to catch up.
--
  Andy McKay
  www.agmweb.ca


- Original Message -
From: Guido van Rossum [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 02, 2002 11:26 AM
Subject: [Zope-dev] Integrating ZEO with Zope 2.7


 We're close to finishing a new version of ZEO, which will be released
 as part of the next ZODB3 release (formerly StandaloneZODB).

 I think this would be a good opportunity to make ZEO a standard part
 of Zope, starting with Zope 2.7.

 Advantage for users: if you download Zope, you have everything you
 need; you don't have to find and download a separate ZEO or ZODB
 release.

 Advantage for Zope developers: no need to test and maintain a separate
 ZEO release.

 There will still be a separate ZODB3 release, which will include ZEO.
 We have to do this anyway, for people who want to use ZODB outside
 Zope.

 Is there anybody who thinks this is a bad idea?

 (Full disclosure: Brian  Jim think it's a good idea, as long as we
 make sure that the ZEO that goes into the Zope 2.7 release is properly
 documented from the sysadmin POV, i.e. how to start/stop/configure.
 Of course we'll do this.)

 --Guido van Rossum (home page: http://www.python.org/~guido/)

 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zopezen.org is slower! Should time be spent on Plone or ZPT speed?

2002-10-02 Thread Andy McKay

Hi James.

Firstly lets address your subject. ZopeZen.org is slower. Why is that?

- There is a lot more work being done to render a page in Plone
- There is less caching being done, I havent optimized it as much as the old
site was
- The BSD memory leak in Python 2.1.3 is not helping
- More html, javascript and css is being used

You'll note I havent related to ZPT. It may or may not be slower, off the
bat it appears to be slower, but I do not believe it is the only cause of
the problem. It is a complex system and to compare the old site to the new
one is rather like comparing apples and oranges. From raw logs posted a
while I noticed a drop in performance using ZPT. But at the time you will
note I pointed out that this could have been due to several things.

 Just my 2 cents. I like plone and everything, but should'nt even the plone
 developers be working on improving and making ZPT faster?

So your suggestion is instead of not using Plone and ZPT in the real world
to see how they perform, I should just concentrate on working on ZPT? Thank
you for the compliment, its nice to hear you imply that I am capable of
improving code that Guido and others has worked on. I know enough C to know
Im not an expert yet, and that is will dramatically help ZPT.

I would like to add that in open source projects there is a need for
contributors at every level. People work on things that interest them, wish
to gain knowledge in or whatever personal reason they have. I don't know
much about the innards of C and Python so leave that to the experts whilst
trying to gain knowledge. Some of the Plone team are excellent at CSS and Im
lucky enough to be working with some people who are keen on writing
documentation.

In fact I'll wager the people who work on UI, documentation, testing are
just as important as the people who write the excellent code. Successful
projects need a diverse group of people, one I think we have.

The Plone project brings people to Zope, it puts Plone in front of users. In
the end that means improvements all down the line back to Zope.
--
  Andy McKay
  www.agmweb.ca



___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zopezen.org is slower! Should time be spent on Plone or ZPT speed?

2002-10-02 Thread Andy McKay

 Thanks for you kind explanation.  I may have been premature in my
 assessment the new Zopezen.org.

Well the proof is the in the pudding, give me a bit of time and we'll see.

 But with some good people switching channels,
 will Zope still end up a major player in the market?

Unfortunately from my forays into the non-Zope (or Plone) into the CMS
market I dont think Zope is anywhere near a major player. I just don't
understand why working on Plone is considered switching channels. When I
developed the CMFZen skin was that switching channels? Is Squishdot?

Whenever I speak to anyone about Plone I mention Zope in the first sentence.

 It will be even longer before there are decent
 instructions on how to get a binary build of the core Zope on windows ;-)

I know how to do this now, its actually quite simple. The burden is now on
me to write something up :(

 Btw how many
 parts are you going to have to publish for us to understand Plone?

Probably less, since I believe ZopeZen is now simpler, there is about 50%
less code. However that could be me understanding CMF and Zope more.

 And just
 as much as the other commercial/open-source projects sought to bring users
 to Zope, those projects are long gone. ie world pilot, spoke.net,
 metapublisher, etc.

Perhaps, but how will you know until you try? There's more than one reason a
project goes under and in some ways Plone is quite different.

I smell commecial interest here.  I smell people trying to make that
one
 killer project hoping to make it big, instead of centering around the one
 vehicle that will help make a bunch of projects big someday.

I won't deny it. I believe I can sell Plone and I'm not sure I can sell Zope
as easily. Its a simple fact that I have to sell what the clients want: if I
spend all my time concetrating on Zope innards, I doubt I'll be able to pay
the mortgage. In the last 3 months 75% of my clients have come to me for
Plone, in one case I steered them to a solution in Zope because I felt it
was a more appropriate solution.
--
  Andy McKay
  www.agmweb.ca



___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] -S undocumented?

2002-09-24 Thread Andy McKay

It sets the ZMANAGED flag. I think, the only time its used is on windows to
indicate that this is being run as service and yes adds the restart button.
On *nix if its started as a daemon this is set for you.
--
  Andy McKay
  www.agmweb.ca


- Original Message -
From: Lennart Regebro [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 24, 2002 9:51 AM
Subject: [Zope-dev] -S undocumented?


 I couldn't find the documentation on what -S does as a parameter to z2.py.
 From reading the source it seems that it adds the restart button in the
Zope
 control panel. Is that correct?

 Best Regards

 Lennart Regebro, Torped
 http://www.easypublisher.com/


 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] finally adding win32 build instructions to zope distro

2002-09-12 Thread Andy McKay

Next you'll be expecting Zope to work on win32, which the 2.6 beta doesnt.
Jeez ;)
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca

- Original Message -
From: James Johnson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 11, 2002 1:17 PM
Subject: [Zope-dev] finally adding win32 build instructions to zope distro




 Let me start with a smiley face :-)

   Now please can I get ahold of come instructions or notes on how to build
 zope on win32.  I have ms vc5  can I use it or do I need vc6?  I'll even
 take gcc or ming32 help if someone knows how to build it that way on
win32.
 I've looked at the notes on zope.org and not sure if the current inst
notes
 for the source will help me.   Since its been promised for some time in
the
 distro notes :-). Is there an ETA for an official win32 build notes to be
 included with current Zope releases.
 thanks,
 - James

 _
 Chat with friends online, try MSN Messenger: http://messenger.msn.com


 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Re:adding win32 build inst. Tap Tap Tap is this thing on?

2002-09-12 Thread Andy McKay

I have had Zope building before on windows, using VC6 I just cant remember
for the life of me how. And by the way, before anyone points out this is not
using Cygwin. Its clear looking at the fact that z2.py is borked for Zope on
windows we need to add some unit tests for actually starting zope so we can
run them on windows. Ah time to do these things...
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca



___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Improving product management

2002-09-05 Thread Andy McKay

Thats what ZPM did for a while, the server side stuff on my end is now
broken. It would display a list of products and tell you what version needs
updating. It would be fairly straightfoward to get that running again I
believe if anyone wants to take a gander.
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca


- Original Message -
From: Eron Lloyd [EMAIL PROTECTED]
To: Andy McKay [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; Jeffrey Chan [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, September 04, 2002 3:46 PM
Subject: Re: [Zope-dev] Improving product management


 I think this is a great idea. A good way to start would be to have a tab
 on the Control Panel entitles Updates, that would make some XML-RPC
 calls to Zope.org, and provide update and hotfix information when
 compared against your running server. Of course, how we know what is
 available is a good question...we would need to see PEPs 241 and 262
 realized I imagine. The current version check wouldn't need this,
 however. Let's see some Web Services!

 Eron

 On Wed, 2002-09-04 at 18:25, Andy McKay wrote:
  Ive discussed this long ago and started off ZPM to do that. However at
the
  time PyPPM wasnt done and distutils wasn't standard. My enthusiasm ran
out
  and there was this work conflict thing ;)
 
  Zope.org doesn't really have a good product querying system, something
like
  Gideon is sorely needed.
 
   | Just a thought. How u guys would consider the possibility.
 
  We would love the possibility, go to it ;)
  --
Andy McKay
Agmweb Consulting
http://www.agmweb.ca
 
 
 
  ___
  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
   http://lists.zope.org/mailman/listinfo/zope )
  ---
  [This E-mail scanned for viruses by Declude Virus]
 
 


 ---
 [This E-mail scanned for viruses by Declude Virus]


 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Trouble populating a dictionary of dictionaries

2002-09-05 Thread Andy McKay

 After playing around for too long on it, I can't seem to get it to work. I
 even tried pre-filling the d-o-d with empty strings. I just don't
understand
 what I am doing wrong.

Its really rather hard to say if you dont show us some code ;)
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca



___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Trouble populating a dictionary of dictionaries

2002-09-05 Thread Andy McKay

 Error Type: TypeError
 Error Value: unsupported operand type(s) for -

  resource = row['resource'] - 1

You should check that row['resource'] is a data type that supports
subtraction. If for example row['resource'] is a string, this will raise the
error. Try: resource = int(row['resource']) - 1
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Improving product management

2002-09-04 Thread Andy McKay

Ive discussed this long ago and started off ZPM to do that. However at the
time PyPPM wasnt done and distutils wasn't standard. My enthusiasm ran out
and there was this work conflict thing ;)

Zope.org doesn't really have a good product querying system, something like
Gideon is sorely needed.

 | Just a thought. How u guys would consider the possibility.

We would love the possibility, go to it ;)
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca



___
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
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Pretty print from Python Script

2002-09-03 Thread Andy McKay

If im doing quick debugging its simple to write a Python Script TTW and view
the results. However using printed for a large data structure can be a
nightmare for debugging as it scrolls off the end of the page. So I imported
pprint.pformat and I was happy again.

But now I want by default printed to return pformat text. Since this will
break nothing of mine, but stop me worrying when I want to quickly print a
dict / list etc for debugging purposes. I thought it would be a simple
matter of changing lib\python\RestrictedPython\PrintCollector.py, but it
gets a string already in the write method.

After that it got complicated and figuring I've spent 10 more minutes on
this than necessary I thought I'd ask if anyone knew off the answer off the
top of their head...

Cheers.
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Potential Improvements for xml-rpc debugging

2002-08-30 Thread Andy McKay

 Now my question is whether this is a good thing in general

+1 and not just for xmlrpc, the less HTML that gets sent in errors the
better.
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca




___
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
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Windows Zope Install

2002-08-29 Thread Andy McKay

Can anyone point me to the location of the configuration file for the
Windows install in CVS? I'm sure Brian pointed it out to me once, but I cant
find it at the moment...
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Windows Zope Install

2002-08-29 Thread Andy McKay

 The WISE install script is in the /inst directory of the 
 releases.

Thanks got it. No wonder I couldn't find it in CVS.
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca



___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-18 Thread Andy McKay

 If you call getObject, that actually does traversal anyway.

Right, in that situation it would be pointless...

You rock, Casey, thanks. I was thinking more about adding:

def getMetadataFromPath(self, path):
 get metadata for an object using its path 
rid = self._catalog.uids[path]
return self._catalog.getMetadataForRID(rid)

def getIndexFromPath(self, path):
 get index for an object using its path 
rid = self._catalog.uids[path]
return self._catalog.getIndexDataForRID(rid)

Since this uses the same terminology and returns the same data as
getIndexDataForRID and getMetadataDataForRID. Is there any reason why I
couldn't checked these in?
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-18 Thread Andy McKay

Woohoo my first check in ;)
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca


- Original Message -
From: Casey Duncan [EMAIL PROTECTED]
To: Andy McKay [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, August 17, 2002 12:14 PM
Subject: Re: [Zope-dev] PathIndex doesn't index last part of path


 Your code looks fine, I think it meshes better with the underlying catalog
 code too. I don't have a problem with this getting checked in, just make
 sure you update IZCatalog.py, help/Catalog.py and add unit tests (that
pass
 ;^).

 -Casey

 - Original Message -
 From: Andy McKay [EMAIL PROTECTED]
 To: Casey Duncan [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Sent: Sunday, August 18, 2002 2:54 AM
 Subject: Re: [Zope-dev] PathIndex doesn't index last part of path


   If you call getObject, that actually does traversal anyway.
 
  Right, in that situation it would be pointless...
 
  You rock, Casey, thanks. I was thinking more about adding:
 
  def getMetadataFromPath(self, path):
   get metadata for an object using its path 
  rid = self._catalog.uids[path]
  return self._catalog.getMetadataForRID(rid)
 
  def getIndexFromPath(self, path):
   get index for an object using its path 
  rid = self._catalog.uids[path]
  return self._catalog.getIndexDataForRID(rid)
 
  Since this uses the same terminology and returns the same data as
  getIndexDataForRID and getMetadataDataForRID. Is there any reason why I
  couldn't checked these in?
  --
Andy McKay
Agmweb Consulting
http://www.agmweb.ca
 
 
 
 


 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )




___
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
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] PathIndex doesn't index last part of path

2002-08-17 Thread Andy McKay

This is mostly a question for AJ, but any input would be great. This bug bit
me today and is documented here:
http://collector.zope.org/Zope/449/ISSUE_TRANSCRIPT/view

I dont understand the brief argument against this one, it would make sense
to me to able to pull an object out of the catalog based on its path. For
example if I want /foo/bar/blammo, currently this means there is only one
way of pulling the an object of the catalog given this path. Thats to send
(path='/foo/bar', id='blammo'), rather than (path='/foo/bar/blammo'). Why
wouldnt we want it this way?

One thing I have done is store a whole bunch of references to objects as
selected by the user. These are essentially random objects and the quickest
way is to pull them back out of the catalog. Of course I cant do more than
one object per query (unless Im missing some other way) Id love to do
(path=['/foo/bar/blammo', '/foo/bar/blammoz']) and get these 2 objects... I
think that would be neat.

It would seem data_record_id_ is not guaranteed to permanent after a
reindex_object (which CatalogAwareness uses), since this uncatalog and then
recatalogs the object. If this did work it would be cool and I could undo
all the changes to my app back again.

- The patch is already there, so Im curious why do we have what seems to be
a more limited design?
- Would a halfway option such as path_match='final' be a choice that wont
break any code but would confuse everyone and not make into the
documentation?
- Is it just a matter of fixing reindex_object as was suggested on #zope so
that data_record_id_ is more permanent?

Cheers
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] PathIndex doesn't index last part of path

2002-08-17 Thread Andy McKay

[snip]
Hmm ok, I can see those reasons.

 Unfortunately, ZCatalog does not expose this to the surface but you
 can write a trivial external method to do it. And I might entertain adding
a
 ZCatalog API to do so if I had a good use case.

Ah... I think this might be the best idea, I'll add that in to mine and, see
if anyone else wants it.

 Now that begs the question, If you already know the path to the object you
 are looking for, why are you using the Catalog in the first place? I
highly
 doubt doing what you describe below is faster than just directly accessing
 the object. In fact I'd be willing to be its slower, especially since you
 are searching two indexes to get it.

Okay so lets assume there is only index I need to search, the path index.
Wouldn't it be faster to pull that out of the Catalog then do a traverse
over to the sub object, wake up a bunch of objects to do that and get the
object? It would be interesting to test that... perhaps Im just leaning on
the old crutch that its faster to get stuff from the catalog than wake many
objects up. Suppose I have 100 such objects. I would have thought one
catalog query on one index (even though its a big union) would be faster
than 100 traversals.

Anyway since I cant efficiently go and get an individual object from the
catalog, this is what Im doing now...
--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] DTML and REQUEST data changes about to be checked in

2002-08-02 Thread Andy McKay

Likewise Im trying to digest all that and Im a little suprised. More magic
in DTML? Not something I'd vote for normally.

Im a little confused why this is suddenly an issue, yeah so we pull a string
out of the REQUEST and thanks to DTML stack we may not know where it came
from. Well thats always been there. And yeah the string may contain nasty
HTML. Again that's always been there.
In the past (and I cant find posts to show it) the party line was Zope is an
application server and its up to the person developing the application to
worry about it. Thats why ChrisW wrote stripogram and I use it in quite a
few apps.

One other question? Why does it matter that the string is implicitly called,
why dont you taint explicitly called to? It makes me think of Perl where
taint mode taints anything coming from the user?

This still doesnt solve the party line and means I would like to suggest
again (and this time I have the time to work on it) that we add something
like stripogram or similar to the core, so that is easy for an application
developer to have access to strip html and other functions from products,
DTML, Python Scripts etc to easily alter, manage and make HTML safer.
--
  Andy McKay
  @gmweb Consulting
  http://www.agmweb.ca




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Memory Leaks

2002-07-23 Thread Andy McKay

Hmm of course it doesnt mean ZPT expressions are causing the leak, but are a
side effect. Of course my DTML ZopeZen is watertight and isnt leaking at all
:)

- Original Message -
From: Stefan H. Holek [EMAIL PROTECTED]
To: Andy McKay [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, July 23, 2002 3:37 AM
Subject: Re: [Zope-dev] Memory Leaks


 I do also see the ZPT expression stuff leaking. In my case in this order:

 Products.PageTemplates.Expressions.SubPathExpr
 Products.PageTemplates.Expressions.PathExpr
 Products.PageTemplates.ZRPythonExpr.PythonExpr

 This one does *not* go away when setting ZOPE_SECURITY_POLICY=PYTHON. I am
 also leaking refs to persistent User objects; may be a side effect
though -
 like your DateTimes.

 The site in question serves large ZSQL result sets via ZPT to
authenticated
 users. No CMF/Plone involved.

 Stefan


 --On Montag, 22. Juli 2002 13:45 -0700 Andy McKay [EMAIL PROTECTED] wrote:

  Hey all,
 
  A client of mine seems to be plagued with memory leaks. I have a CMF /
  Plone site on We fixed some security issues that caused a major leak
this
  is the same I believe as http://collector.zope.org/Zope/421, by jiggling
  settings this no longer an issue. Anyway we are still getting some minor
  leaks that severly limit the amount of the traffic the box is going to
be
  able take. Lots of different objects are being leaked, including good
old
  DateTime, however I dont believe its this, DateTime just happens to be
  there.
 
  Possible culprits are (trimmed down debug page) ZPT:
  Products.PageTemplates.Expressions.PathExpr,
  Products.PageTemplates.Expressions.SubPathExpr,
  Products.PageTemplates.TALES.TALESError etc...
  or AccessControl AccessControl.unauthorized.Unauthorized,
  AccessControl.SecurityManager.SecurityManager etc...
 
  A quick rummage through LeakFinder hasn't helped too much so Im not sure
  what too recommend. Good old install ZEO and restart Zope every few
hours?
  Is anyone else having issues?
 
  Configuration:
 
  Plone 0.99 Almost There
  CMF Beta 1.3 beta 1
  Zope 2.5.1
  Python 2.1.3
  RedHat Linux 7.1
  Using Apache and pcgi to serve...
  --
Andy McKay
 
 
 
 
  ___
  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
   http://lists.zope.org/mailman/listinfo/zope )

 --
 Those who write software only for pay should go hurt some other field.
 /Erik Naggum/




___
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
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Memory Leaks

2002-07-22 Thread Andy McKay

Hey all,

A client of mine seems to be plagued with memory leaks. I have a CMF / Plone
site on We fixed some security issues that caused a major leak this is the
same I believe as http://collector.zope.org/Zope/421, by jiggling settings
this no longer an issue. Anyway we are still getting some minor leaks that
severly limit the amount of the traffic the box is going to be able take.
Lots of different objects are being leaked, including good old DateTime,
however I dont believe its this, DateTime just happens to be there.

Possible culprits are (trimmed down debug page) ZPT:
Products.PageTemplates.Expressions.PathExpr,
Products.PageTemplates.Expressions.SubPathExpr,
Products.PageTemplates.TALES.TALESError etc...
or AccessControl AccessControl.unauthorized.Unauthorized,
AccessControl.SecurityManager.SecurityManager etc...

A quick rummage through LeakFinder hasn't helped too much so Im not sure
what too recommend. Good old install ZEO and restart Zope every few hours?
Is anyone else having issues?

Configuration:

Plone 0.99 Almost There
CMF Beta 1.3 beta 1
Zope 2.5.1
Python 2.1.3
RedHat Linux 7.1
Using Apache and pcgi to serve...
--
  Andy McKay




___
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
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Re: Zope logic

2002-05-30 Thread Andy McKay

gt; Looking at the zope.org logs, I once saw GoogleBot generate URLs like 
gt; this to zope.org of 1000 characters or more.

Teehee, Googlebot once hit ZopeZen for about 3 days in a continuous loop. Just
use absolute_urls. Always. Its one of Zope's golden rules.

Mind you I've abused acquistion a few times, it comes in
useful to be able to have a different / shorter url point to the same object...
-- 
  Andy McKay


___
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
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Re: Adding Batch Factory to ZMI Add menu OK?

2002-05-28 Thread Andy McKay

My current project is a product called ZFS and I just got an initial beta
working last night and since this project came up. Essentially im hoping this
can be a replacement for LocalFS and all External* products. But this sounds
very similar to your work...

ZFS is folderish object that points to a file system and hacks the storage
level of Zope so that when an object is saved, part of it is diverted to
the file system. Meaning the textarea part of a DTML Document is saved to
the file system. Because it hacks the storage level, this object appears to
be a normal object (so you can do all the usual things to, for example pasting 
it from ZFS to a normal folder means it becomes a normal object. This approach 
has many advantages and I hope to be able to allow all standard objects 
(DTML *, Python Scripts, Images, Files) to work in this manner.

If running in debug mode, it syncs automatically to the file system, meaning
you can create and edit objects on the FS and they sync straight into Zope.
If in production mode, you call it manually to update, thus getting much
better performance.

You obviously lose some features (Undo) and there are still many issues to be
fixed, but I need to get it done so expect a release soon.

On 27/05/02 18:38 -0300, Leonardo Rochael Almeida wrote:
gt; Hello Craeg
gt; 
gt; I particularly prefer the factory aproach. Zope users are already used
gt; to that approach because of the Z Search Interface. I think you
gt; shouldn't need a dummy class just to be able to create such a factory,
gt; but right now I don't know how you'd go about creating a factory without
gt; a class.
gt; 
gt; As for an ExternalFileFolder, it would be useful if it automatically
gt; created objects when they are added to the respective directory
gt; (automatically as in, it checks for new objects when you look at the
gt; object list (manage_main), or when you try to access a previously
gt; inexistant (sp.) object. Although, because of Data.fs write-on-read
gt; concerns, you might want this automation to be configurable on a folder
gt; by folder basis). An ExternalFolder might also provide a view or tab to
gt; configure default attributes of newly discovered objects. The objects
gt; created this way would obviously be regular ExternalFile objects, and
gt; you could copy/cut and paste them outside of the ExternalFileFolder
gt; object.
gt; 
gt; Cheers, Leo
gt; 
gt; On Mon, 2002-05-27 at 17:32, Craeg K Strong wrote:
gt;  Hello:
gt;  
gt;  I am about to release a new version of the ExternalFile and CVSFile products
gt;  
gt;  http://www.zope.org/Members/arielpartners/ExternalFile
gt;  [...]
gt; 
gt; -- 
gt; Ideas don't stay in some minds very long because they don't like
gt; solitary confinement.
gt; 
gt; 
gt; 
gt; ___
gt; Zope-Dev maillist  -  [EMAIL PROTECTED]
gt; http://lists.zope.org/mailman/listinfo/zope-dev
gt; **  No cross posts or HTML encoding!  **
gt; (Related lists - 
gt;  http://lists.zope.org/mailman/listinfo/zope-announce
gt;  http://lists.zope.org/mailman/listinfo/zope )

-- 
  Andy McKay


___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] ExternalEditor Windows

2002-05-21 Thread Andy McKay

On May 21, 2002 09:29 am, brian.r.brinegar.1 wrote:
 Hello,

 I'm working on porting Casey Duncans ExternalEditor helper application to
 work with Windows. I've got some stuff working, but it's far from
 complete. I was wondering if anyone else was working on this? I would hate
 to be duplicating efforts, but I would love to help.

I was thinking of doing the same thing, but if you've done most of it... 
anything I can do to help, let me know.
-- 
  Andy McKay


___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Re: References to hypertext templating languages

2002-05-15 Thread Andy McKay

On May 15, 2002 11:13 am, Chris Withers wrote:
 man, you have waaay to much tiem on your hands ;-)

Wow chris is typing sooo fast he cant spell teim properly...
-- 
  Andy McKay


___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Can I get rid of standard_template.pt?

2002-05-10 Thread Andy McKay

If its the same as earlier zopes its line 174 of OFS\Application.py remove
the offending reserved names. Except maybe for Control_Panel, it seems
pointless. If the item's not there, an error is raised. Simple. To me there
should just be a warning message, Removing this item may cause some
products that expect this not to work, are you sure you want to do this?

Likewise I will probably get rid of standard_template.pt, most of the
session stuff... This also lets you do useful things like make
standard_error_message a Python Script, yipeee.

- Original Message -
From: Lennart Regebro [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, May 10, 2002 5:36 AM
Subject: [Zope-dev] Can I get rid of standard_template.pt?


 I'm not using it, and will never use it, so why does Zope 2.5.1 always
 create one for me?
 Grrr. Highly annoying. :-[







 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )





___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Can I get rid of standard_template.pt?

2002-05-10 Thread Andy McKay

I looked at 2.5 on surprised to see that apart from Control Panel only
'browser_id_manager' and 'temp_folder' are protected meaning you can delete
all the others. I threw a monkeypatch up that allows you to delete them
anyway, and it will work for pre 2.4 systems
(http://www.zope.org/Members/andym/Reserved)

But... when you restart Zope it recreates them all again for you :) However
you can delete the Examples and not have them come back ;)

Since its all one big function in Application.py, it will be a little bit
hard to monkey patch further but could probably be a little more consistent
to say the least.

- Original Message -
From: Andy McKay [EMAIL PROTECTED]
To: Lennart Regebro [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, May 10, 2002 7:20 AM
Subject: Re: [Zope-dev] Can I get rid of standard_template.pt?


 If its the same as earlier zopes its line 174 of OFS\Application.py remove
 the offending reserved names. Except maybe for Control_Panel, it seems
 pointless. If the item's not there, an error is raised. Simple. To me
there
 should just be a warning message, Removing this item may cause some
 products that expect this not to work, are you sure you want to do this?

 Likewise I will probably get rid of standard_template.pt, most of the
 session stuff... This also lets you do useful things like make
 standard_error_message a Python Script, yipeee.

 - Original Message -
 From: Lennart Regebro [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, May 10, 2002 5:36 AM
 Subject: [Zope-dev] Can I get rid of standard_template.pt?


  I'm not using it, and will never use it, so why does Zope 2.5.1 always
  create one for me?
  Grrr. Highly annoying. :-[
 
 
 
 
 
 
 
  ___
  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
   http://lists.zope.org/mailman/listinfo/zope )
 




 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )





___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] python question

2002-04-27 Thread Andy McKay

Look at pydoc http://www.google.ca/search?q=pydochl=enmeta=

- Original Message - 
From: Dirk Datzert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 26, 2002 10:39 AM
Subject: [Zope-dev] python question


 Hi,
 
 does anybody know a good programm or the command to create documentation
 of python classes (api-documentation like javadoc) out of the python
 code ?
 
 Thanks,
 Dirk
 
 
 
 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )
 




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] SOAP and Zope

2002-04-24 Thread Andy McKay

The SOAP integration that has been done is similar to the automagical xml-rpc 
integration so its really not that good. 

http://www.ppetru.net/software/index.html

I got some WebServices working using SOAP in Zope about the same time Brian 
worked on it using hacked up soaplib libraries they might still be working 
here: 

http://aspn.activestate.com/ASPN/Syndication

Brians WebService stuff is cool and should be integrated after all the work 
he's put in, so good luck :)
-- 
  Andy McKay


___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Re: ZClasses useful! [Was: ZMI / JavaScript brainstorm]

2002-04-09 Thread Andy McKay

 What's your efford on this task? If people like to use them, let them!
 It's not up to you to decide for THEM what's best or not. The choice for
 YOURSELF not to use them is just as fair as other peoples choices.

Sure but many people ask more experienced developers for advice. I agree
saying ZClasses suck totally is unhelpful. For people who dont know coding
or want to do quick prototyping they have a place. However if someone asks
me how to do a product, I normally give them the choice: use ZClasses but I
would strongly recommend using a Product etc (and then be ready with the
reasons why which is the next question).

Unfortunately people deciding the right and wrong ways for other people to
code is a trait sometimes found in Python / Zope world. But dont get me
started on that :)
--
  Andy McKay






___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Error removing NT Service

2002-03-08 Thread Andy McKay

Ive noticed this too and Im not sure of the cause. I normally dont delete
services from a long running process, rather quick scripts so didnt worry
about it. However I did not spot anything in the documentation.

Try posting to a python list and if you are lucky Mark Hammond might suggest
a solution. Unfortunately your only workaround might be to start another
process to do the delete.

- Original Message -
From: Dean@work (E-mail) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 08, 2002 6:39 AM
Subject: [Zope-dev] Error removing NT Service


 Hi

 I have an application built with Zope which can install, control and
remove
 NT services. The actual code is in an external python script.  The
services
 can be installed and controlled but if you try and remove the service it
get
 marked as 'disabled' and can not be reinstalled or remove manually
(without
 using the registry).  However if Zope is restarted the service is then
 removed.

 Does anyone have any ideas about resolving this problem ??

 thanks in advance

 Dean Houghton





 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] multiple database connections

2002-03-07 Thread Andy McKay

On March 7, 2002 03:28 am, kapil thangavelu wrote:
 part of this goes back to the old who is zope's target audience days, when
 content managers were supposed to use the zmi directly. plus its just
 generally less confusion, imo.

Getting rid of this assumption will solve lots of daft little issues like 
that for example why does a ZSQL Method need to be tied to a database at all? 

I've hacked ZSQL Method so you can change the database its connected to on 
the fly, this allows you to use one Method on multiple databases (for example 
switching between a development and production database).
--
  Andy McKay

___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] ZEO on Windows?

2002-03-04 Thread Andy McKay

I have run an old version of ZEO on Windows successfully, I dont know which
version that was (or which version you are refering to). I had to fix a
couple of lines, but then these were patched not long after. In fact a quick
google search for ZEO Windows pops up the very email...
http://lists.zope.org/pipermail/zodb-dev/2001-March/000591.html

- Original Message -
From: David Ascher [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 9:30 PM
Subject: [Zope-dev] ZEO on Windows?


 I'm having some issues trying to use ZEO on Win2k w/ Apache and Quixote.

 Specifically:

   - if I happen to call client code before the server is running, I get
 a python process which is completely hung -- I can't even kill it from
 the process monitor w/ administrator privs.  Every client request will
 result in a hung Python process.

   - if the server is already set up (as should normally be the case),
 sometimes the client request goes through, sometimes it doesn't.  I'm
 not getting any tracebacks or info in the Apache logs.

 I could write up some simple Python test cases, but the documentation
 makes me wonder if ZEO works on windows at all (e.g. the unqualified
 reference to unix domain sockets =).  so...

 Does ZEO work on Windows?  Any gotchas?

 --david

 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zope 2.6 planning - call for contributors!

2002-03-03 Thread Andy McKay

 I'd like to see the ZSyncer Product, or a variant thereof, included in
 Zope by default.  That is, I'd like Synchronization, to a be a default
 property of Zope objects, so that objects/content can be pushed and
 pulled between two Zope installations.

Thanks for the enthusiasm but its still too hacky to go into the core.
Ideally I'd rather put in the time so this is more transparent in Zope 3.
--
  Andy McKay



___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Zope 2.6 planning - call for contributors!

2002-03-03 Thread Andy McKay

 Ive never really understood the motivation for wanting https support
 direct in Zope ZServer isnt robust enough to be exposed to the raw
 internet without risk. Today (and perhaps for the forseeable future,
 because its not clear that Zope want to take on the responsibility of

ZServer may not be as robust as Apache or Squid but many, many people expose
raw to the internet without problem (and compare that to other products from
Redmond). The main motivation is that many people use Zope as a single
solution, by installing Zope they can get everything they need to get a web
site. By having the ZMI only available through HTTPS by default for example
will definitely increase security and make Zope a better all in package. It
obviously won't help the enterprise customer.

Is there actually a huge amount of risk in this? The patches are there and
seem to work ok most of the work seems to have been done already...
--
  Andy McKay



___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re[2]: [Zope-dev] Urgent help required

2002-01-31 Thread Andy McKay

 It uses the configuration set on the ODBC DSN I think. At least that is what
 appears to happen.

AFAIK ZODBCA is only single threaded though, ZmxODBCA should be a better bet.

There is a Zope-DB list BTW and Matt Mr Zope RDBMS guru Kromer hangs out there
a lot.
--
  Andy McKay


___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] (SHOUT) NOTIFICATION!!!!

2001-11-30 Thread Andy McKay

 I mean, Zope CAN send mails, but not that many (at least not efficiently).
 Or how does Bugzilla do the mail stuff?

One at a time via sendmail. Bugzilla has lots of very, very useful features.
And does have to look like crap. We ended up using Bugzilla, it rocks.

http://bugs.activestate.com

Cheers.
--
  Andy McKay.


___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Stripogram or similar in core

2001-10-27 Thread Andy McKay

 That's a cool syntax but it's a bit too 'magik' for me. That magik could
be
 alleviated by something documenting the whole input name=fish:list/x
or
 maybe a project describing what those things after the colon should do and
where
 they should be documented.

Yeah it is a little. Just thinking of ideas here.

 personally, I don't think it'll scale to html filtering. What happens when
you
 want to get the allowed tags from a property of another object?

Hmm true of course it could just be input name=fish:listdtml-var
_.string.join(allowedHtml,'/') etc or something

 Hmmm, how's this for a plan:

 1. Document the :something options fully.

 2. Add a :html that behaves as you describe

 3. Fix the bug that means :date won't accept an empty value.

Thats related?

 4. expose the above stuff in a coersion module that can be imported into
python
 scripts, that would mainly have one function: coerce

Hang on a sec...

 def coerce(from,to,**kw):

 eg:
 from coersion import coerce

 x='1234'
 y=1234
 z='10/6/01'
 a=''
 b='bx,y/b'

 coerce(x,'int')==y==1234
 coerce(y,'string')==x=='1234'
 coerce(z,'date')==DateTimeObject
 coerce(a,'date')==DateTimeObject (or maybe None, but I favour a DateTime
object
 that actually has a NULL value)
 coerce(b,'html',tags=['i'])=='x,y'

Whats wrong with just int and str etc... Is your idea here just to get
everything in one place and one
class? Other than that Im not sure of the value..

- Original Message -
From: Chris Withers [EMAIL PROTECTED]
To: Andy McKay [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, October 27, 2001 3:48 AM
Subject: Re: [Zope-dev] Stripogram or similar in core


 Andy McKay wrote:
 
  What do people (especially Chris) think of making ChrisW's stripogram
part
  of the core of Zope.

 I think it rocks :-)

  Just discussing this with some colleagues today and we got onto a
  marshalling data and it occured to us it would be nice to do something
like
  input type=text name=something:html:p:br that would only allow p
and
  br in the html. Ok, its easy to get around with a fake form, but how
about
  being able to only specify certain html tags in metadata in the CMF.

 That's a cool syntax but it's a bit too 'magik' for me. That magik could
be
 alleviated by something documenting the whole input name=fish:list/x
or
 maybe a project describing what those things after the colon should do and
where
 they should be documented.

 personally, I don't think it'll scale to html filtering. What happens when
you
 want to get the allowed tags from a property of another object?

  Having HTML Parser and maybe those stripogram functions should be easy
to
  integrate and provide Zope with a standard security mechanism for these
  issues.

 Hmmm, how's this for a plan:

 1. Document the :something options fully.

 2. Add a :html that behaves as you describe

 3. Fix the bug that means :date won't accept an empty value.

 4. expose the above stuff in a coersion module that can be imported into
python
 scripts, that would mainly have one function: coerce

 def coerce(from,to,**kw):

 eg:
 from coersion import coerce

 x='1234'
 y=1234
 z='10/6/01'
 a=''
 b='bx,y/b'

 coerce(x,'int')==y==1234
 coerce(y,'string')==x=='1234'
 coerce(z,'date')==DateTimeObject
 coerce(a,'date')==DateTimeObject (or maybe None, but I favour a DateTime
object
 that actually has a NULL value)
 coerce(b,'html',tags=['i'])=='x,y'

 cheers,

 Chris

 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )



___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] RE: [Zope] disc files inner methods

2001-10-27 Thread Andy McKay

Im not sure what these people are talking about, but Komodo an IDE from
ActiveState can happily debug all through Zope.
http://www.ActiveState.com/Komodo,
http://www.zope.org/Members/andym/KomodoDebugging.
--
  Andy McKay

- Original Message -
From: Clark OBrien [EMAIL PROTECTED]
To: 'Jens Vagelpohl' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, October 26, 2001 10:13 AM
Subject: [Zope-dev] RE: [Zope] disc files inner methods


 If I am in the Zope manage interface. I select Add then scroll down to
 Script(Python)
 this is what I was calling an inner method.

 Here is a reply I got from a Python IDE engineering team as to why I am
 not able to debug this code with their IDE:
   Regards
  Clark

 
 Support for non-disk fragments like Zope internal methods is planned but
 not yet there.  When added, we'll also add access to the code via ftp or
 webdav.  The bigger problem is actually correct identification of the
 code
 fragments and mapping of run locations to the appropriate URL for the
 source code.  I'm not sure off-hand whether Zope does anything when
 executing the code to identify where the code came from (like setting
 __file__ or munging code objects' co_filename). If not, we'ld have to
 add
 that.

  +

 
 One other note on this:  At one point it sounded like the Zope folks
 wanted to move more to disk files again and they seemed to indicate
 (cryptically) that there were things in the works to make this problem
 of
 non-disk files irrelevant.  I haven't had time to keep up to date on
 this,
 but it might be worth checking if there's some config option on Zope
 that
 would solve this issue.  Certainly, moving to external methods and
 products would also work, but if you've got an existing code base that
 is potentially a lot of work.
 



 -Original Message-
 From: Jens Vagelpohl [mailto:[EMAIL PROTECTED]]
 Sent: Friday, October 26, 2001 9:49 AM
 To: Clark OBrien
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Zope] disc files inner methods


 i'm still completely in the dark about what it is you are referring to.

 maybe it's just me being dense on a friday

 jens


 On Friday, October 26, 2001, at 12:48 , Clark OBrien wrote:

  It is what is  causing some difficulties in ( inside, within,) the
 Zope
  community. If you got this far I would like to hear a reply.
 
 
  -Original Message-
  From: Robert Rottermann [mailto:[EMAIL PROTECTED]]
  Sent: Friday, October 26, 2001 8:25 AM
  To: Clark OBrien; Jens Vagelpohl
  Cc: [EMAIL PROTECTED]
  Subject: Re: [Zope] disc files inner methods
 
 
  Happy you asked.
  I was wondering also
  Robert
  - Original Message -
  From: Jens Vagelpohl [EMAIL PROTECTED]
  To: Clark OBrien [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Friday, October 26, 2001 4:22 PM
  Subject: Re: [Zope] disc files inner methods
 
 
  umh... what is an inner method ???
 
  jens
 
 
  On Friday, October 26, 2001, at 10:18 , Clark OBrien wrote:
 
  Guys,
  I would really like to see some direction as to whether to use disk
  files for inner methods.
  Zope is a great tool but until we have some good IDEs for it, it
  will
  not compete with better known
  technologies.
  I have spoken with the Karmira and Wing and they both told me the
  same
  thing- They are waiting to see how
  Zope stores the inner methods.
  Regards
   Clark
 
 

 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )



___
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
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Stripogram or similar in core

2001-10-26 Thread Andy McKay

What do people (especially Chris) think of making ChrisW's stripogram part
of the core of Zope.

Just discussing this with some colleagues today and we got onto a
marshalling data and it occured to us it would be nice to do something like
input type=text name=something:html:p:br that would only allow p and
br in the html. Ok, its easy to get around with a fake form, but how about
being able to only specify certain html tags in metadata in the CMF.

Having HTML Parser and maybe those stripogram functions should be easy to
integrate and provide Zope with a standard security mechanism for these
issues.

If people agree this a good idea I'll happily drive this forward.

Cheers.
--
  Andy McKay.



___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Versions (still)

2001-10-24 Thread Andy McKay

 dtml-in
ZopeFind(PARENTS[-1],search_sub=1,obj_expr='locked_in_version()')
 LIfound dtml-var title_or_id html_quote in Version dtml-var
locked_in_version
 /dtml-in

Yep I've done that, but looking through every object to see if its in the
version rather than examining the versions seems some what icky (and can be
expensive with lots of objects).

 Hehe, I feel with you, looking at how versions work takes one straight to
 Filestorage.commitVersion and some very low level code.

Yup. Hence the post.

 The question is if this is worth the effort, in the light of the
 new versioning discussion. The weaknesses of the current implementation
 of versioning puts some pressure to create something new IMO.

Yup, unfortunately I might be in a battle for Zope where time is of the
essence. I was just hoping there was an easy way. Sounds like there isn't.
--
  Andy McKay


___
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
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Versions (still)

2001-10-23 Thread Andy McKay

So there I was in this discussion about Zope versioning (again) and there
were two features requested that seemed perfectly reasonable at the time,

- to have a list of all the objects changed by a version
- to be able to individually commit or discard changes in a version on a per
object basis

This is would be extremely useful for those times when you forget to check
out of a version and accidentally lock the root folder (This happens quite a
bit). Simple I thought, but ugh versions go all the way down to FileStorage
and got into ZODB stuff I didnt understand. I would have thought having a
little refactoring to give two more methods: getVersionContents and
commitObject would be possible, but Im scratching my head at FileStorage
now.

Before I embark down this path is there an easier way?

Cheers.
--
  Andy McKay.





___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Versions (still)

2001-10-23 Thread Andy McKay

 And regrettably, the only idea I have come
 up with is copying attributes from one version into another, or
 disgusting things like that.  I haven't implemented anything because it
 sounds too icky, and I keep thinking there's gotta be a better way :)

You can actually search every object in the database to see if its in a
version. As you say icky.

Cheers.
--
  Andy McKay.


___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Versions (still)

2001-10-23 Thread Andy McKay

 To my understanding, versions are implemented as long running transactions
 against the ZODB.  So I think to do anything with them you have to put in
 hooks at the level of the ZODB transaction machinery.  That might have
some
 interesting byproducts if you were to do it grin.  The zodb-dev list
 is probably the place to inquire

Hmmm. I'll give it a little while longer before I bug the gurus on
zodb-dev... :)

Cheers.
--
  Andy McKay.


___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] BUG or FEATURE?

2001-10-23 Thread Andy McKay

Its the dtml-with REQUEST, that mucks up the namespace lookup for value

dtml-with REQUEST
dtml-in [1,2,3]
dtml-call REQUEST.set('value', _['sequence-item'])
Doesnt work:dtml-var value, works: dtml-var REQUEST['value']
/dtml-in
/dtml-with

But with REQUEST is a rather wierd thing to do. Are you sure you want to do
that?

Cheers.
--
  Andy McKay.


- Original Message -
From: R. David Murray [EMAIL PROTECTED]
To: Sidnei da Silva [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 23, 2001 3:15 PM
Subject: Re: [Zope-dev] BUG or FEATURE?


 On Tue, 23 Oct 2001, Sidnei da Silva wrote:
  I dont know how it was supposed to work, but i think that if the REQUEST
was
  immutable inside a dtml-with, it should be not allowed to call
REQUEST.set
  inside it.

 It isn't immutable.  The second and subsequent sets should work.

  dtml-call REQUEST.set('var', sequence-item) == only works first
time it

 Well, I don't know quite what you are observing, but this code is broken.
 Inside the quotes you are in python mode, and 'sequence-item' in python
mode
 is the variable sequence minus the variable item.  Since it didn't throw
an
 error, you must have variables by those names that understand
substraction.

 Try _.getitem('sequence-item') instead.

 I suspect this thread belongs on zope, not zope-dev.

 --RDM


 ___
 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
  http://lists.zope.org/mailman/listinfo/zope )



___
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
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Python 2.2a1

2001-10-19 Thread Andy McKay

Is out and:

Large file support is now enabled on Win32 and Win64 platforms, and
automatically configured (at least on Linux and Solaris).

Cool, that will mean there will be less worries about Zope users hitting the
2 gig limit.

Cheers.
--
  Andy McKay.




___
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
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] standard_error_message and displaying non-html content.

2001-10-18 Thread Andy McKay

 I think the way to proceed is to create a fishbowl proposal to
 change ZPublisher so that no HTML wrapping takes place if the Content-Type
is
 some thing other than text/html.

 Unfortunately changing magic like this has a tendancy to break code that
 unwittingly relies on it. The fishbowl allows everyone to give that due
 consideration.

 I think this is a great idea BTW.

Yeah it would be useful since I currently check to see if the request is an
xmlrpc one to return xml instead of html. This may be simply part of the new
component architecture to have text/plain treated differently.

Cheers.
--
  Andy McKay.


___
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
 http://lists.zope.org/mailman/listinfo/zope )



  1   2   3   4   5   6   >