Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-16 Thread Andy Dustman
On Fri, 16 Jul 2004 10:36:27 -0400, Brad Clements <[EMAIL PROTECTED]> wrote:

> The SAP  folks say their adapter is "multi-thread capable", but I've come to believe 
> that only
> means that it's ok to open a connection in one thread and use it in another, but NOT 
> to have
> 2 threads make requests on the same connection at the same time.

I would be surprised to find any database API that allowed that.
Generally "thread-safe" means that there are no global state
variables, i.e. all connection state is encapsulated in the connection
object/struct. Generally I would not try to share connections between
threads at all. To do it, you'd need to ensure that a thread performs
a commit or rollback on the connection before another thread can use
it, i.e. performs a complete transaction or none at all. Otherwise you
will have all sorts of interesting problems.

> Also, two threads can' t open a connection "at the same time" because their 
> connection table
> management isn't "thread safe".

That does suck, but it doesn't seem like an insurmountable problem for
a DA. You just need a per-DA instance mutex which you acquire before
opening a connection release afterwards.
___
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-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
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 
. What we want 
to do in Plone is this: .

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 
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] 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] 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 )


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 )


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 )


[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] 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] 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 )


[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 )


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] 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
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 )


[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] weak examples, weak exploits

2003-06-23 Thread Andy McKay
Casey Duncan wrote:
I would be in favor of making the Examples "opt-in" like the Zope tutorial. It 
seems silly to have it in evey ZODB by default. Make people add it if they 
want it.
+1 a simple "How to add the examples to the ZODB" at the top of the help 
would be good. Mind you I really dont want the HelpSys in my ZODB either :)
--
  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-22 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 )


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 )


[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] 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-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-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

But it is hopeless for pure python:

:)
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] zopezen site down

2003-02-19 Thread Andy McKay
Hi Robert,


There is no info on the site and a whois search doesn't provide any
contact details.


Oh its me :) I just haven't gotten around to setting Zope up yet, thats all.


If the owners of ZopeZen are on this list please get in contact if you
are would like a donation of some resources to help get and keep the
site back online.


Thanks kindly. Im actually going to move it to my own Linux box here 
behind my cable modem. It sat happily on my Windows box for a while I 
want to do some Mailman and Jabber integration so prefer to have full 
access. Of course its only a 266 Mhz with 64 Mb so we'll see some 
performance work and caching, maybe a site change.

Thanks once again for the offer.
--
  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-23 Thread Andy McKay
> But why? Why escape double quotes when it's not a reserved character?
> I really don't understand the need, and the example in the collector
> doesn't convince me. What is the problem?

The problem occurs where you want include the value of a variable inside an
attribute.

For example:



By default Page Templates replaces the escaped value in the form, unless
"structure" is specified. If someValue contained a " (eg: test with a "
quote) then you would get the following invalid html (this is what you
currently get):



This of course should be (and what the patch changes it to):



If you do not escape double quotes in the Page Template html quoting
function, you will never be able to easily use Page Templates unless you are
sure that someValue does not have double quotes escaped. This would mean
having to import an escaping function into your page templates or adding an
extra layer of python involved for almost every use of a variable.

Otherwise you would be living on the edge as you would never be quite sure
if yout HTML is properly escaped. For example this occurs in almost all of
the CMF skin. Note that in good old DTML if you use html_quote, you're
escaping " by default (lib\python\DocumentTemplate\html_quote.py).

If we are escaping <> and &, I see no reason not to escape " as well.

And I believe the Zope Book Appendix C needs updating to reflect this.

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

Why?

Test checked in by the way.
--
  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] z3 sprint at pycon?

2002-12-20 Thread Andy McKay
> Is anybody planning a zope 3 sprint at pycon?

If not I think we should...

Eric you were talking about a Zope 3 Web Services sprint in March? There's
likely to be a whole bunch of us at PyCon and with Brian just down the road,
it might be a more suitable venue.
--
  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] 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] 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] 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: [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: [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
> 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] 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 )



[Zope-dev] 2.6.1 Plan?

2002-10-21 Thread Andy McKay
In Florent's message on date screwup he mentioned 2.6.1...

> I know 2.6.1 is supposed to be finished pretty soon but not within a week,
right? :-)

Is there a plan, schedule etc for 2.6.1? I couldn't find it in the Wiki's
but that doesn't mean much :)

Want put ZCatalog Caching proposal (working on) and SQL Caching proposal in
somewhere and Im not sure where to look.

Cheers
--
  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] 2.6.1 Plan?

2002-10-21 Thread Andy McKay
> For sanity's sake, 2.6.x is now the current maintenance branch, not the
> place to put new features.  New features should only go into 2.7.  We
> need to get out of the hotfixes business.  Adherence to strict rules is
> the right way to get there.

Thanks, you've answered my second question and I'll try to put these
features intto 2.7.
--
  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 )



[Zope-dev] Proposal: Improving ZSQL Methods

2002-10-17 Thread Andy McKay
I've put up a proposal I'd like to put into 2.6.1 or 2.7, whichever is next.

Summary: "Change ZSQLMethods to allow a user to a) change the database
connection without changing the object and b) use standard cache managers."

http://dev.zope.org/Wikis/DevSite/Proposals/ZsqlMethodImprovements

Any comments or ideas welcome.

Cheers.
--
  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

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  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] 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  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] 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 a

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] 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] 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] -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] 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] 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] 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] 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] 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] 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 )



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 )



[Zope-dev] Windows Zope Install

2002-08-28 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] 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 )



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

2002-08-17 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-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 )



[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] 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

> Looking at the zope.org logs, I once saw GoogleBot generate URLs like 
> 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:
> Hello Craeg
> 
> I particularly prefer the factory aproach. Zope users are already used
> to that approach because of the Z Search Interface. I think you
> shouldn't need a dummy class just to be able to create such a factory,
> but right now I don't know how you'd go about creating a factory without
> a class.
> 
> As for an ExternalFileFolder, it would be useful if it automatically
> created objects when they are added to the respective directory
> (automatically as in, it checks for new objects when you look at the
> object list (manage_main), or when you try to access a previously
> inexistant (sp.) object. Although, because of Data.fs write-on-read
> concerns, you might want this automation to be configurable on a folder
> by folder basis). An ExternalFolder might also provide a view or tab to
> configure default attributes of newly discovered objects. The objects
> created this way would obviously be regular ExternalFile objects, and
> you could copy/cut and paste them outside of the ExternalFileFolder
> object.
> 
> Cheers, Leo
> 
> On Mon, 2002-05-27 at 17:32, Craeg K Strong wrote:
> > Hello:
> > 
> > I am about to release a new version of the ExternalFile and CVSFile products
> > 
> > http://www.zope.org/Members/arielpartners/ExternalFile
> > [...]
> 
> -- 
> Ideas don't stay in some minds very long because they don't like
> solitary confinement.
> 
> 
> 
> ___
> 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 )

-- 
  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

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] 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] python question

2002-04-27 Thread Andy McKay

Look at pydoc http://www.google.ca/search?q=pydoc&hl=en&meta=

- 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] ActiveState Python Distributions

2002-03-23 Thread Andy McKay

When the next ActivePython comes out though it will be relatively simple to
drop in the replacement though. I would only worry if you cant get Zope /
Python stable in time before production.

- Original Message -
From: "Eric Roby" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 23, 2002 7:19 AM
Subject: [Zope-dev] ActiveState Python Distributions


> I am in the process of setting up a group of Zope servers (some ZEO and
> some not) using the INSTANCE_HOME technique.  I am currently running a
> Zope 2.4.4b1 and Zope 2.5 (pointing to) on the latest ActiveState Python
> distribution release.  They are ONLY development sites  right now.  The
> cluster I am about to setup will be production.  Since ActiveStates
> release lags a bit from the Python release, will I get into trouble
> setting up a central (ActiveState) Python Interpreter from which to
> drive my Zope cluster.  All will be 2.5+ with the exception of a Zope
> instance running 2.4.4 (for OracleDA compatability).
>
> Any thoughts...
>
> Thanks in advance
>
> 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] where is Zope 2.5.1?

2002-03-13 Thread Andy Dustman

On Wed, 2002-03-13 at 12:04, Brian Lloyd wrote:

>   - Absolutely eliminate SQL db access as a cause (it sounds 
> like we have proof of this now)

This sounds like it is not specific to any DA. Is that the case?

-- 
Andy Dustman PGP: 0x930B8AB6
@   .net http://dustman.net/andy
You can have my keys when you pry them from my dead, cold neurons.


___
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 Leak Problem

2002-03-12 Thread Andy McKay

Didnt Shane do a leak finder product that can help debug this? 
http://www.zope.org/Members/hathawsh

On March 12, 2002 08:42 am, Chris McDonough wrote:
> Finding memory leaks is an exercise in "binary search".  Isolate half of
> the Zope (and Product) code and find out if it leaks.  If it doesn't, you
> know the problem is in the other half. ;-)  Ad infinitum.  I'm sorry this
> is the case, but it almost always boils down to this particular recipe of
> diagnostics.
-- 
  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

> 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: [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-01 Thread Andy Dustman

On Fri, 2002-03-01 at 04:16, Dario Lopez-Kästen wrote:
> I'd like to see ZSQL methods altered so that bind variables could be used in
> SQL queries.

+1, even though MySQL doesn't bind variables (yet, apparently in the
works for 4.0).

Another thing I would like (and could probably write) is an additional
skip_rows parameter (default 0) to Z SQL Methods to complement max_rows.
Since this needs to be passed to the DA's query(), and no DA's currently
accept this parameter, one of these things need to happen:

1) Trap the TypeError that results from calling a query() that doesn't
recognize skip_rows (used as a keyword parameter). In that case, fall
back to query(q, max_rows+skip_rows) and return result[skip_rows:] in
the Z SQL Method.

2) Add a new DA method query_range(q, skip_rows, max_rows); if
AttributeError, fall back like #1.

3) Simply require all DA's to implement it in query() as a keyword
parameter to maintain backwards compatibility with older Zopes.

Adding this would make Z SQL Methods work a bit more like . There may be issues with result caching,
but I don't think it'll be too much of a problem.

-- 
Andy Dustman PGP: 0x930B8AB6
@   .net http://dustman.net/andy
You can have my keys when you pry them from my dead, cold neurons.


___
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] Load balancing over FastCGI

2002-02-04 Thread Andy Sydelko

Has anyone actually used multiple FastCgiExternalServer
directives within apache, each pointing to a separate ZEO 
client, to load balance?

We had this set up and doing round-robin between 2 ZEO
clients, but there are _big_ problems with it. For a page with
lots of images, we are getting images/objects returned from
seemingly random places. Apparently the request coming in 
from one browser doesn't necessarily go back out to that browser.

If someone wants proof of this, we are able to fairly reliably 
reproduce the problem.

I've sent mail to the fastcgi-developers list, but not yet gotten 
a response.

--andy.

___
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] authenticating over XML-RPC to implement the Blogger API

2002-02-03 Thread Andy

ZSyncer does user authentication over xmlrpc via xmlrpclibBasicAuth.py,
download it and take a look.

- Original Message -
From: "Nathan Sain" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 9:19 AM
Subject: [Zope] authenticating over XML-RPC to implement the Blogger API


> Hello Everyone,
> I've got a problem and was wondering if anyone on this list my have some
> insight as to howto solve it.  I want to implement a the Blogger XML-RPC
API to allow users
> to add content toa Zope site (the API is here
http://plant.blogger.com/api/index.html).  It
> requires that theusername and password be sent as parameters in each
function call.  is it
> possible to hookinto Zopes authentication scheme via a external method or
python script?
> I've also noticedthat it could be possible to grab the username and
password from the
> XML-RPC call whenZPublisher calls request.processInputs(), but I don't
know how Zope
> authenticates the userthis may be to late in the process to try and fudge
with the request
> object.  Has anyone elsedone user authentication via parameters?
>
> Any help would be appreciated
> --
>
> Nathan Sain
>
>
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>



___
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   >