[Zope-dev] Re: self = self.this() in Factory Methods [Was: Dynpersist.so and makefile.pre.in]

2002-02-01 Thread Andrew Kenneth Milton

+---[ Stefan H. Holek ]--
| At 01.02.2002 10:44 -0500, R. David Murray wrote:
|
| All,
| 
| Please have a look at my patch for XUF at
| http://www.zope.org/Members/shh/Patches/exUserFolder-0.10.4.patch
| 
| I believe that manage_addexUserFolder() is faulty, in that it does not call 
| the FactoryDispatcher's this() before assigning to self.__allow_groups__.
| 
| My point is that 'self' is initially referring to a FactoryDispatcher 
| (App/FactoryDispatcher.py) which does *not* define __setattr__().

As I explained previously I think that if you are trying to install XUF 
(or anything) programmatically from a ZClass, then you should call the 
manage_addFoo() on an instanciated object i.e. a Folder or some other container 
that your ZClass has created, not on your Dispatcher.

If someone gives me a sane reason why this isn't correct and that calling
self = self.this() in every product constructor is actually the correct 
behaviour I'll put it in (as opposed to catering for lazy ZClass 
programmers d8) Not that this seems to be in very many constructors for
Zope stuff or other products I have installed.

Since it seems this is going to occur repeatedly, having spent 10 seconds
looking at it, it seems that the 'correct' way is to call

self.Destination()._setObject()

so in essence self.Destination().__allow_groups__ will also get what we
want. 

This is actually documented (although it's not clear what versions of Zope
this will work with, or whether this will do the same thing as 
self._setObject(), it's late, I've had no sleep, I'll look later, or someone
who actually knows can fill in the blanks for us, but, I think it's 2.4 only)

It doesn't seem to be used by any of the Zope objects in 2.4.3 (at least not 
in any python ones), so it's hard to say.

The ZDG does not say that self (or dispatcher as it says), will not be
usable as if it was your ObjectManager.

The add function will be passed a FactoryDispatcher as its first argument 
which proxies the location (usually a Folder) where your product was added.

This implies nothing special is needed to use the first argument as if it
was the ObjectManager to which you are being installed.

So from this it seems if you are running 2.4 that self should be a proxy
to an ObjectManager to which you can add things w/o calling Destination()

| I believe this to be the reason for issues surrounding XUF like 
| undeletable userfolders where the __allow_groups__ attribute appears to 
| be installed in the wrong place.

err no. That was something completely unrelated, and had to do with the
manage_beforeDelete() failing (now corrected).

| I am not posting to the XUF list as I would have to subscribe first.

Yes, we enjoy the lower spam count over on -devel, -users is open though.
If you want to discuss XUF devel issues then you should subscribe and you
should post there.

Your patch was rejected because it claimed to fix something it was unrelated
to, namely the __allow_groups__ persisting after the acl_users was deleted.

Your fix could not have possibly fixed it, because the code that actually
removed the attribute was never executed, which means you didn't actually
test your patch against the condition you told me it was supposed to fix.

-- 
Totally Holistic Enterprises Internet|  | Andrew Milton
The Internet (Aust) Pty Ltd  |  |
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[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 )



Re: [Zope] ZDatabaseTool password

2001-01-30 Thread Andrew Kenneth Milton

+---[ Andreas Heckel ]--
| Thank you all for your interest in my new Zope Product.
| In the past 36h there were avg 750 visits (26000 hits) on my page :-)
| Some of you asked me for username/password. So here it is ...
| 
| To create new ZDatabaseWizard objects at http://www.easyleading.org/demo
| first go to the folder named "Free".
| 
| username: demo
| password: demo
| 
| Hope the online demo makes more sense to you with this info ;-)

This just keeps giving me the same Title of New Query form...

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] ZDatabaseTool password

2001-01-30 Thread Andrew Kenneth Milton

+---[ Andreas Heckel ]--
| Andrew Kenneth Milton wrote:
|  
|  +---[ Andreas Heckel ]--
|  | Thank you all for your interest in my new Zope Product.
|  | In the past 36h there were avg 750 visits (26000 hits) on my page :-)
|  | Some of you asked me for username/password. So here it is ...
|  |
|  | To create new ZDatabaseWizard objects at http://www.easyleading.org/demo
|  | first go to the folder named "Free".
|  |
|  | username: demo
|  | password: demo
|  |
|  | Hope the online demo makes more sense to you with this info ;-)
|  
|  This just keeps giving me the same Title of New Query form...
| 
| First click on "Free".
| On the lower left you can see that now "Free" is your current folder.
| Then type in a name for your new query and hit "next".
| Then you will asked for username and password ...

Oh haha.. I was expecting username and password first...

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] License

2001-01-29 Thread Andrew Kenneth Milton

+---[ Oleg Broytmann ]--
| On Mon, 29 Jan 2001, Chris Withers wrote:
|  Olaf Zanger wrote:
|  
|   is the product planned to ship under GPL or an corresponding licence?
| 
|  Please don't shit it under GPL, it makes it much less useful :-S
|  A variant of the Zope License would be much mroe friendly :-)
| 
|OH, NO, PLEASE NOT AGAIN :( NONE OF THESE LICENSE WARS, PLE-E-E-SE! Do
| allow people to choose their licenses freely!

Geez Oleg, all he did was make a request... chill on the caps..

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Dynamic ordering of DTML-IN?

2001-01-23 Thread Andrew Kenneth Milton

+---[ Andy Gates ]--
| Another one from the "my brain don't work" side of the tracks:
| 
| I have a staff list that I want to be orderable by first or last name. 
| So I have buttons for each that link thus:
| 
| a href="staff?orderby=firstname" etc
| 
| The idea is that that feeds over to the DTML-IN tag thus:
| 
| dtml-in "sql_search(search='foo')" sort=orderby
| 
| But this barfs, because it's expecting a field name "orderby" and there
| isn't one.  How do I evaluate that?

dtml-in "sql_search(search='foo', orderby=orderby)"

Then change your Z SQL Method to look like;

select * from Customers where
foofield=dtml-sqlvar search type=string
dtml-if orderby
ORDER BY dtml-var orderby
/dtml-if

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Getting an object from it's id

2001-01-23 Thread Andrew Kenneth Milton

+---[ Geoff Armstrong ]--
| on 1/23/01 12:34 PM, Oleg Broytmann at [EMAIL PROTECTED] wrote:
|
| In DTML there doesn't seem to be a way of saying, "I have this string with
| the name of an object, now fetch me the object."

if objectname is actually a variable with the name...

dtml-with "_.getitem(objectname,0)"

or dtml-call "REQUEST.set('fooobject',_.getitem(objectname,0))" to
get the object into a variable to pass or manipulate.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Trivial challenge ?

2001-01-23 Thread Andrew Kenneth Milton

+---[ Olivier Deckmyn ]--
| Hi all,

| """
| dtml-with mydoc
| dtml-var render
| /dtml-with

Why don't you just do dtml-var mydoc ?

you can also do dtml-var "mydoc.render(_.None,_)"
I suppose

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Trivial challenge ?

2001-01-23 Thread Andrew Kenneth Milton

+---[ Olivier Deckmyn ]--
| I tried dtml-var "mydoc.render(_.None,_)" 
| 
| The same result : does'nt work...(exactly like with the dtml-with tag)

and dtml-var mydoc ?

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Dynamic ordering of DTML-IN?

2001-01-23 Thread Andrew Kenneth Milton

+---[ Oliver Bleutgen ]--
|  Then change your Z SQL Method to look like;
| 
|  select * from Customers where
|  foofield=dtml-sqlvar search type=string
|  dtml-if orderby
|  ORDER BY dtml-var orderby
|  /dtml-if
| 
| Hmm, I wouldn't do that, you're trusting the client here,
| imagine someone going to 
| 
| http://yourserver/staff?orderby=firstname%20;%20delete from Customers;

You always validate external input, especially in a web environment.
I didn't think it was necessary to spell that out.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] dtml-in sql = dtml-in anything?

2001-01-23 Thread Andrew Kenneth Milton

+---[ Joh Johannsen ]--
|
| I'd like to just have the external method return exactly the same thing
| as the ZSQL, but I'm having some problem finding what format (if any)
| that is.
| 
| Is this sort of thing even possible?

You'll need to look at the ResultSet class that is used by ZSQL Methods
and ZCatalogs amongst other thing. Once you know how they work, it's pretty
easy to use them.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] SQL query result set - what data structure how to access [(elements)]?

2001-01-21 Thread Andrew Kenneth Milton

+---[ Lee ]--
| Hi,
| 
| I'm using a python method to query my database as follows, where I need
| to use the result set to generate some HTML. I'm interested in result[0]
| and result[1] as listed below;
| 
| * return result[0] gives me:
| [{'name': 'PRACTICALS', 'type': 's', 'null': None, 'width': None},
| {'name': 'TUTORIALS', 'type': 's', 'null': None, 'width': None},
| {'name': 'ASSIGNMENTS', 'type': 's', 'null': None, 'width': None},
| {'name': 'BONUS', 'type': 's', 'null': None, 'width': None}]
| 
| * return result[1] (or just 'return result') gives me:
| [(1, 16, 9, 1)]
| 
| What kind of data structure is this? First impressions suggest that it's
| a tuple but why the extra brackets?. I need to access each element but
| how do I do this? I've tried all sort of tuple/list
| conversions/operations and have had no success.
| 
| If the result is [(1, 16, 9, 1)] how can I assign...
| 
| a=1st element i.e. 1
| b=2nd element i.e 16..?
| 

Ok try this... you're getting a ResultSet back, here's some code to
iterate over them.

These are little gems I've gleaned from various places, so I take
no credit (or responsibility) for this code :-)

add these to your .py file


from string import upper, lower
import Missing
mt=type(Missing.Value)

def typeconv(val):
if type(val)==mt:
return ''
return val

def sqlattr(ob, attr):
name=attr
if hasattr(ob, attr):
return typeconv(getattr(ob, attr))
attr=upper(attr)
if hasattr(ob, attr):
return typeconv(getattr(ob, attr))
attr=lower(attr)
if hasattr(ob, attr):
return typeconv(getattr(ob, attr))
raise NameError, name


Then as an example of how it works;
in the same .py file.

def parseResultSet(self):
userList={}
myResults=self.sqlGetAllCustomers()
for cust in myResults:
customername=sqlattr(cust,'customername')
username=sqlattr(cust,'username')
userList[username]=customername
return userList

myResults represents any result set... so it should 'just work', YMMV

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] ZSQL: postgres, SELECT INTO

2001-01-20 Thread Andrew Kenneth Milton

+---[ Steve Drees ]--
| Has anybody selectively used SELECT INTO with zope/postgres?

It's probably dying because there can only be ONE SELECT clause in a
ZSQL Method. The SELECT ... INTO will be triggering a false positive.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Postgresql Query.

2001-01-17 Thread Andrew Kenneth Milton

+---[ ethan mindlace fremen ]--
| --On Wednesday, January 17, 2001 04:33:25 PM +1000 Andrew Kenneth Milton 
| [EMAIL PROTECTED] wrote:
| 
|  Normally, I would tell you to visit;
| 
|  http://www.zope.org/Documentation/
| 
|  but, some monkey has designed the interface w/o actually testing it,
|  since there's no direct references to the online ZSQL Reference there
|  any more, and the online dtml reference shoves you into dtml-var.
| 
| Monkey fix! bannana?

No banana for you! Bad Monkey! And stop breaing into the female monkey
cages...

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Postgresql Query.

2001-01-16 Thread Andrew Kenneth Milton

+---[ Jason C. Leach ]--
| hi,
| 
| I'd like to learn a bit more on how to do a SQL query on a postgres DB
| from Zope.  Like how to do it, what is better DTML or Python for it, and
| how would I do it in DTML (I can probably get python working fine).

You have to use a ZSQL Method to access databases from Zope.
You don't necessarily need to use ZSQL Methods from Python Products, but,
in reality this turns out to be rather more convenient.

Normally, I would tell you to visit;

http://www.zope.org/Documentation/

but, some monkey has designed the interface w/o actually testing it,
since there's no direct references to the online ZSQL Reference there
any more, and the online dtml reference shoves you into dtml-var.

Go to there, and then expand Zope Help in the left hand pane, and then
near the bottom there will be some stuff on ZSQL Methods. Pretty poor
compared to the online reference that used to be available.

There also used to be direct links to downloadable PDF docs -- also gone.

I know a lot of people weren't happy with the level of documentation, but,
removing useful (even if it wasn't the best) information from the 
documentation pages isn't the solution.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

___
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] Problems with RESPONSE.redirect + SiteAccess

2001-01-12 Thread Andrew Kenneth Milton

I have a weird problem with SiteAccess.

I have a Python Product, that has a method;

def manage_ProductsRedirect(self, RESPONSE, URL2, REQUEST={}):
''' Redirect to the Product Module '''

print URL2
RESPONSE.redirect(URL2+'/Packages')

This code works when simply using the product, adding a bogus empty
return has no effect. print URL2 is printing the correct BASE that I want to
redirect to.

Once I add a SiteRoot, everything else works fine, except the redirect,
it just spins for an eternity before timing out.

This is a Zope-2.2.4 install under FreeBSD.

Anyone have any ideas?
-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

___
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] Re: ZBabel translation to Postgres

2001-01-04 Thread Andrew Kenneth Milton

+---[ Olaf Zanger ]--
| Hi there,

...

| What does the whole thing do anyway?

Finds all the phrases that don't have a translation for the language
selected. It's hard to find things that don't exist in databases without
nested selects which MySQL did not have at the time.

MySQL was chosen precisely because it is restricted, and is basically the 
lowest common denominator when it comes to SQL.

I do recall however, that postgres only implements INNER and OUTER joins
although I don't know the status of the JOIN stuff in postgres at this time.

| Has anybody ported ZBabel already? 

Someone was going to send me patches for postgres, but, I never received
them.

I'll happily integrate patches, although, automatically selecting the
right query based on database type will be required so that several releases
aren't required. I don't think that that's a hard thing to achieve.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Fw: Zope.org feedback

2000-12-17 Thread Andrew Kenneth Milton

+---[ Michael Bernstein ]--
|
|  Federal registration is not required to establish rights in a trademark.
|  Common law rights arise from actual use of a mark. Generally, the first
|  to either use a mark in commerce or file an intent to use application
|  with the Patent and Trademark Office has the ultimate right to use and
|  registration.
| 
| Sorry, but 'breadcrumbs' as a description of various types
| of web-navigation features has been in use quite a bit
| longer than this. Try searching http://www.useit.com/ for
| the term 'breadcrumbs' and you'll come up with some
| documents dating to 1994.

I'm sure the Hansel and Gretel story from which this was based in the
first place could get a foot in the door as well. It's not a big stretch
to go from forest to web navigation d;)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Multiple ZODBC sources

2000-11-22 Thread Andrew Kenneth Milton

+---[ Capesius, Alan ]--
| I need to join tables from two ODBC sources, one MS Access one SQL. 
| 
| ZODBC DA seems to be limited to one data source at a time. Is there any way
| to join tables from two different sources?

Write a method to copy the results from Access into a temporary table of the 
other.

Then do your query and clean up.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] The new Python Method renaming Poll

2000-11-16 Thread Andrew Kenneth Milton

+---[ Michel Pelletier ]--
|
| asking the question "Who is buried in Grant's tomb?".  Duh.

Perhaps for the non-americans, someone can tell us why the answer to this is
'nobody.'


-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] The new Python Method renaming Poll

2000-11-16 Thread Andrew Kenneth Milton

+---[ Michel Pelletier ]--
| Andrew Kenneth Milton wrote:
|  
|  +---[ Michel Pelletier ]--
|  |
|  | asking the question "Who is buried in Grant's tomb?".  Duh.
|  
|  Perhaps for the non-americans, someone can tell us why the answer to this is
|  'nobody.'
| 
| Oops.  Ulysses S. Grant is buried in Grant's tomb. He was President of
| the US from 1869-1877.  The question "Who's buried in Grant's tomb?" is
| from, I belive, a Marx Brothers' skit.  The answer is supposed to be
| obvious (to Americans, at least).

That's the problem it seems obvious, but, it isn't, it's one of the
all time hall of fame 'trick questions'.

http://personal.pitnet.net/bbb/funnies/sf_18i1.htm

THE WORLD'S EASIEST TEST...

 This test has just twenty questions (and one bonus
question), so you should be able to answer them all in just a few
minutes.  Write down your answers and see how you do ...

[snip]

 20)  Who's buried in Grant's Tomb?

[snip]

 20)  Though the bodies of both President Grant and his wife
  are contained inside the famous tomb and New York City
  landmark, they are not buried.  In an above ground
  tomb, bodies aren't buried, they are "entombed."
  ANSWER: Nobody is buried in Grant's Tomb.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Zope declining?

2000-11-11 Thread Andrew Kenneth Milton

+---[ Hung Jung Lu ]--
| Hi,

[Snip]

| I know what many would say: there are now more experts than newbies as 
| compared to before. There are not as many problems as before, etc. But that 
| is that really all? I don't think so.

I think they're all coming to the IRC channel for help, its more immediate,
traffic in there has picked up quite a bit.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] insert but updates don't work

2000-11-05 Thread Andrew Kenneth Milton

+---[ Bowyer, Alex ]--
|  but get an authentication challenge that I can not pass.
|  Is there something special about sql updates?

You don't have 'permissions' to an update, this is a ZSQL perms problem.
You might need to give your update method a 'proxy' role to fix it.

I thought this was fixed some time ago, do you have some particularly
ancient version of Zope ?

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] insert but updates don't work

2000-11-05 Thread Andrew Kenneth Milton

+---[ Graham Chiu ]--
|
|  You don't have 'permissions' to an update, this is a ZSQL
|  perms problem.
|  You might need to give your update method a 'proxy' role
|  to fix it.
|  
|  I thought this was fixed some time ago, do you have some
|  particularly
|  ancient version of Zope ?
| 
| Using 2.1.3.  Is this considered ancient?

I would say yes at this stage. I wouldn't recommend any release
below 2.2 any more, and 2.3 is coming RSN.

While in terms of elapsed time it's not that long, web technology
is moving pretty quick, and 2.2 closes some large security holes.

| I have a work round, and now find what I was trying to do
| has not succeeded in speeding up my queries :-(

That's a bummer.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] IIS and Zope share same problem :-S

2000-10-20 Thread Andrew Kenneth Milton

+---[ Chris Withers ]--
|  MICROSOFT WEBSERVERS LAID OPEN FOR ALL TO SEE
|  by Dave Murphy, [EMAIL PROTECTED]
|  
|  Microsoft is scrambling to repair damage caused by a
|  security hole in its IIS 4  5 webserver that runs on
|  Windows NT/2000. Microsoft claims over four million
|  IIS websites, and each one of them is at risk of
|  releasing sensitive data through the security hole.
|  Called the "Web Server Folder Traversal" error, the
|  flaw allows users to execute files on an IIS website by
|  requesting a specific web address. 
| 
| http://www.zope.org/standard_html_header for example ;-)

Not that old chestnut again...

| http://www.zope.org/objectIds as another...

To be fair this is not the same as the bug described below.

| 
|  The bug allows access to any file on the webserver via
|  a specified URL. Like all webservers, IIS is supposed
|  to prevent access to files that aren't intended to be
|  part of the website.

Knowing the file is there is not the same as accessing it.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Odd SQL errors- HELP

2000-10-09 Thread Andrew Kenneth Milton

+---[ Jon Franz ]--
|
| +---+--+--+-+-++
| | Field | Type | Null | Key | Default | Extra  |
| +---+--+--+-+-++
| | id| mediumint(8) |  | PRI | 0   | auto_increment |
| | value | varchar(32)  |  | | ||
| +---+--+--+-+-++
| 
| Now, at first i thought it was the field name of 'id' causing 
| the problem, but now I've tried renaming the field and its still a no-go.
| I can do queries such as 'select value from reason' fine, but if i select
| * or the id field, it chokes... Looking through the mailinglist archives,
| I think its a 'mapping error' where the ZmySQLDA doesn't properly map
| this type of field for some reason... can someone help me solve this
| problem?

The problem is likely to be your mediumint field, which is probably not
mapped to a python type.

You should let us know what version of MySQL DA you have.
Also be aware that the DA is not a part of Zope, and has been contributed
by a 3rd party.

Anyway if you want to have a crack at fixing it, look in the
ZMySQLDA directory in a file called db.py. You could add an entry with

"medium int":"i" 

or permutations of the above. (You can test it I can't, so little point in 
me doing it when its this simple).

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] 'self' in external methods

2000-10-03 Thread Andrew Kenneth Milton

+---[ seb ]--
| Hello,
| 
| Whenever I do a
|   def play(self,sound):
| return sound

You don't define self as a parameter to an external method, so:

def play(sound):

will work fine in an external method.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] database connection problem (halting Zope)

2000-10-03 Thread Andrew Kenneth Milton

+---[ Hrasky Petr ]--
| Hello everybody,

Hi..

|   I understand that long query blocks database connection, but I thought
| Zope is threaded, so it should run other requests not using this
| database connection just fine, no?

You are correct, that should be the case.

| Could it be that the python binary used is not compiled for threading? 

Perhaps, but, I think Zope will fail to start if your python does not
support threading.

| I spent yesterday afternoon and this
| morning looking for solution to this problem on the net, but with no
| luck yet.
| 
| Can anybody enlighten me why is that? And what can I do to fix this.

It might be that the ODBC driver for MySQL is serialising all accesses
to MySQL (i.e. the MySQL ODBC driver is not threaded). This is a bit
of a guess though.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] FSF about Zope and GPL'ed components

2000-09-20 Thread Andrew Kenneth Milton

+---[ [EMAIL PROTECTED] ]--
| Let me ask a more precise question.
| 
| Zope is not released under GPL.
| 
| Joe repleases a component which can be used with Zope under GPL license.
| Zope.org makes it available for download, but in no way incorporates
| it into their base system.  (I.e., it is available for integration
| by an end user).

No with an if, yes with a but..


This General Public License does not permit incorporating your program into
proprietary programs.  If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library.  If this is what you want to do, use the GNU Library General
Public License instead of this License.


If Zope is considered proprietary, the answer is no.

The GPL is supposed to stop Zope/DC from taking your product and distributing
it with Zope. It is also designed to force people who write applications
to release under GPL. The fundamental flaw with this clause is that it 
assumes that the GPLd code existed first.

It does not take into consideration that you might want to extend a 
proprietary program using GPL code.

This also holds for things like GPL drivers for Solaris e.g.

Sun have recently found a weakness in the GPL and are exploiting it,
so perhaps all is not lost for GPL stuff for Zope.

http://www.linuxgram.com/newsitem.phtml?sid=108aid=10785


There is another option..

That is to treat Zope like an operating system, and to treat products as
applications under that Operating System. (whether FSF will see it that 
way is another thing).

However, all subsequent products, that call your product must be GPL.
You write a tag, and its GPL, anyone that uses your tag has to release
as GPL.

You can not infinitely abstract the metaphor.

If you want other people to be able to use your code, but still want to
retain your GPL, then use LGPL, which protects your code and derivations,
but, does not infringe on other people's license choice.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] restrictedTraverse - yay! :-)

2000-09-15 Thread Andrew Kenneth Milton

+---[ Dennis Nichols ]--
| At 9/15/00 10:05 AM, Chris Withers wrote:
| So:
| 
| dtml-var "restrictedTraverse('slash/delimited/path')" absolute_url
| 
| will work as I expect it to?
| 
| Well, I don't know what you expect :-) When I try to save such a construct 
| with the handy-dandy Change button I get
| 
| Document Template Parse Error
| Invalid attribute name, "absolute_url", for tag dtml-var 
| "restrictedTraverse(choice)" absolute_url ...

dtml-var "restrictedTraverse(choice).absolute_url()"

I think is what is required.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Zope Crash!!!

2000-09-15 Thread Andrew Kenneth Milton

+---[ Aitor Grajal ]--
| 
| 
| I have only one z2.py running, and run all day and night ;-),
| but sometimes (only managing Zope, not running other process z2.p) , this exception 
|jump,
|  but I haven´t two process, only have one.
| I want know why crashIt´s very rare

Do you have something else running on port 8080 ?

If you do (like squid), then when you press 'Restart' on the Control Panel
then something else might grab the port.

It also could be that the port is lingering and is still in use when Zope
tries to restart.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Zope and the GPL poison pill

2000-09-13 Thread Andrew Kenneth Milton

+---[ Dario Lopez-Kästen ]--
| 
| From: "Toby Dickenson" [EMAIL PROTECTED]
|  If that is your motivation then you may find that you get *more* back
|  by not using the GPL. My contributions to Zope (both personal and on
|  company time) are fairly significant in total, and would not have
|  happened if Zope was under a GPL license.
| 
| 
| but is that because you personally don't like/endorse the GPL for
| what-ever-reason or is it because the GPL actually prevents this? and if so,
| could you please elaborate?

There are a variety of reasons.

First and foremost is that the GPL is not corporate friendly, which means
that larger corporations are unlikely to take on GPLd products in any form.
Unlikely does not mean impossible, but until the NASDAQ picks up again, I
would say most people will be wary of non-commercial friendly products.

So if you have something useful, then what will probably happen is
said corporation will likely throw money at it and reimplement it,
market it better, and make proprietary changes and move on. This has
already happened with a BSD licensed product (the license was incidental,
but, it did happen). This can happen to any Open Source product.

The second reason is that GPL attracts fanatics. Just look at any
discussion forums where the issue comes up. You cannot have a calm discussion
and mention the GPL. 

I have already seen one GPL project have to re-license its code to a 
company who despite the ranting of some and the calm assurances of others
was not convinced that they could even comply with the GPL.

The oft-quoted reason for GPLing code is to protect code from being
'made proprietary.' Well noone can do that anyway, because you own it.
Mainly people GPL their code to stop other people making money from it 
(that's why RMS invented it in the first place d8) It should be noted that
large projects are effectively proprietary anyway because of their size,
(see Mozilla, and how long it's taken for any serious action).

Here are some large, non-GPL products that are thriving.

Apache -- BSD licence, several commercial versions around. It's hurt
apache how? Well it hasn't, they in fact have received funding from
IBM and others, and actually have bleeding edge Java support provided
by corporations.

X11 -- BSD license, several commercial versions around. Same deal, they
get funding from large vendors to provide features etc.

*BSD -- BSD license, Apple took Net/FreeBSD code for Darwin, and has
contributed changes back to the relevant codebases, and have released
Darwin as an open source Operating System (not required by BSD license).
BSDI acquired Walnut Creek and FreeBSD, changes are being merged across
from BSDI to FreeBSD.

Mozilla -- MPL license. 

Zope -- ZPL license.

Perl -- Artistic License (GPL - controversial bits).

While the GPL guarantees that other people's code will also be open
source, it doesn't guarantee that they will contribute those changes to
you (i.e. stop forks 150 Linux distros can't be wrong). 
The BSD code doesn't prevent this either (OpenBSD anyone?). MPL does.

It always amuses me that the GPL zealots who deride any and all licenses
that are not GPL, continue to use the TCP/IP code pilferred from *BSD,
use Apache, and use openssh which doesn't seem to have any license d8)
They also proudly use Netscape which doesn't come with source at all.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Zope and the GPL poison pill

2000-09-13 Thread Andrew Kenneth Milton

+---[ [EMAIL PROTECTED] ]--
| On Wed, Sep 13, 2000 at 11:29:23PM +0200, Nils Kassube wrote:
|  I'm only pointing out what I think is a problem with using a
|  GPL'ed component in a Zope site. 
|  
|  My Zope-specific problem is: If I use a GPL'ed component in a complex
|  object oriented environment like Zope, does this mean that the whole
|  work is now subject to the GPL? 
|  
|  work = Zope-based web site/web application
|
| GPL and non-GPL code.  Again, installing gcc on a computer
| does not automatically force every other piece of software on the
| computer to be GPL (containment on a hard disk is not what this is

gcc is also a special case. Any and all programs compiled with gcc contain
GPL'd code, and therefore should also be GPL. This requirement would 
obviously kill gcc stone dead. 

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Zope and the GPL poison pill

2000-09-12 Thread Andrew Kenneth Milton

I love the smell of napalm in the morning.
-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Icons in a product

2000-09-08 Thread Andrew Kenneth Milton

+---[ Petr Knapek ]--
| Hi Zopists,
| I would like to know if there is any possibility how to publish an icon
| on the web which is in www folder of my own created product. That is I
| want to put some icons into the www folder of my product and to have
| possibility to show them on the web. The problem with my own stylesheet
| of my product is similar. Is there any possibility to put it in the
| product (not ZODB) and later use it. In both cases I don't want put
| anything into /Control_Panel/Products/myProduct/ over web interface. I
| use Zope 2.1.6
| 
| I need to put any icon into my python product and later have possibility
| to call this icon on the web. Where to put it in my folder structure on
| the box and what the URL will be?
| 
| Thanks for help, Petr

In your __init__.py;

from ImageFile import ImageFile

misc_={'iconId': ImageFile('www/icon.gif',globals()).}

You then reference it is as:-

img src="/misc_/YourProductName/iconId"

Please excuse any obvious mistakes in this I'm a little sloshed at the
moment d8)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Icons in a product

2000-09-08 Thread Andrew Kenneth Milton

+---[ Petr Knapek ]--
|  On Fri, 8 Sep 2000 23:18:40 +1000, Andrew Kenneth Milton 
|[EMAIL PROTECTED] said:
| 
| Hi Andrew,
| thank you very much for quick answer but I it doesn't work because
| in my __init__.py I register the product with the initialize(context)
| function.

It doesn't go inside your initialize function, sorry about that.

It's a 'global' variable in your __init__.py

etc..

misc_={
'subagency': ImageFile('subagency.gif',globals()), #little
'SubAgencyIcon': ImageFile('SubAgency.gif',globals()), #big
'agent': ImageFile('agent.gif',globals()),
'company': ImageFile('company.gif', globals()),
'CompanyIcon': ImageFile('CompanyIcon.gif',globals()),
'client': ImageFile('client.gif',globals()),
'ClientIcon':ImageFile('ClientIcon.gif',globals()),
}

def initialize(context):

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] supplemental group ids (Linux)

2000-09-05 Thread Andrew Kenneth Milton


|  I saw this on Linux; supplemental groups come from the BSD tradition,
|  so you likely will find the same situation on *BSD, Solaris, etc.

Sorry I missed the start of the thread, but, I can weigh in on this point.

Using -u user under FreeBSD gives you the Primary Group for the user you
have requested. Supplemental groups are available only for that user, not
the user you ran Zope as.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] dtml-comment Fine, don't fix :P

2000-09-05 Thread Andrew Kenneth Milton

+---[ Chris Withers ]--
| Andrew Kenneth Milton wrote:
|  Th second part of the problem is that ChrisW(hinger) really wants it,
| 
| "really wants it" might be a little strong... I'm not loosing any
| sleep...
| 
|  but,
|  doesn't want to do what is necessary to do it. 
| 
| Swishdot or fixing DTML... take your pick :P
| (TreeTag would still get it first anyway...)

Well since I don't use S*dot... :-)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] supplemental group ids (Linux)

2000-09-05 Thread Andrew Kenneth Milton

+---[ Kip Rugger ]--
|
| On my machine 101 is uid and gid for nobody; as you can see
| junkbuster is correctly sandboxed.  For unmodified Zope, you'll
| see a zero in the indicated line (or possibly several values
| if root belongs to several groups like `wheel' on your system).

Have you actually tried to change to that group?

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] dtml-comment doesn't? Please fix... ;-)

2000-09-04 Thread Andrew Kenneth Milton

+---[ Chris Withers ]--
| Andrew Kenneth Milton wrote:
|  But then you'd have to parse the contents to find out if the comments are
|  properly nested...
| 
| Well, the parsing should be pretty simple:
| 1. find dtml-comment
| 2. search for /dtml-comment

Or dtml-comment

| 3. if found:
|   ignore that block of text
|else if end of text reached:
|   bitch like hell ;-)
| 
| What's wrong with that?

It's wrong :-)

dtml-comment
crap
more crap
dtml-comment
Lots of crap
/dtml-comment
/dtml-comment

In order to parse that fragment, you need to parse the blocks in case you
find another opening block, so that you can recursively process comments.

|  I've looked at this briefly today, and the code inside DT_String.py is
|  recursively ugly... d;)
| 
| You do surprise me ;-)
| 
|  It doesn't look difficult to provide what you want, but, I'm not motivated
|  enough to fix it either at this stage. d8)
| 
| Aww... go on, you know you want to really ;-)

Now you know the problem domain, it shouldn't be hard for you to create
a cut-down equivalent of the DT_String parser that only parses comment blocks.

Take you less time than writing these emails I'm sure d;)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] dtml-comment doesn't? Please fix... ;-)

2000-09-04 Thread Andrew Kenneth Milton

+---[ Kip Rugger ]--
|
| [snip]
| 
| dtml-if "0"
| crap
| more crap
| dtml-if "0"
| Lots of crap
| /dtml-if
| /dtml-if
| 
| by analogy with the common practice of #if 0 in C

Won't work, the container will still be parsed for correctness at 'save' time.
The problem isn't getting nested comments per se, we already have that. 
The problem is to completely ignore the contents of the comment tag whilst
still allowing nested comments.

Th second part of the problem is that ChrisW(hinger) really wants it, but,
doesn't want to do what is necessary to do it. So the problem is simplified
to not actually doing anything except talking about doing it. d8)

Thankyou for playing d8)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Regaining lost privileges

2000-09-03 Thread Andrew Kenneth Milton

+---[ Nigel Head ]--
| Hi Andrew!
| 
| On Fri, 01 Sep 2000, you wrote
| ...
|  I saw people asking about building 'admin' systems using Zope, this isn't
|  going to be trivially possible without super user privs.
| 
| That people was me. Having looked into things a little further (but not
| actually started the admin tool yet due to "day job" pressures) I've decided
| to go the route (root?!) of using something like 'sudo' or 'runas'  which
| allow you to provide a selection of suid scripts and specify which users are
| allowed to run them (zope, in my case, I suppose).
| 
| I'm still considering the relative merits of using a sort of 'quarantine'
| file/database where zope will dump requests to do things and a cron job will
| poll it periodically to grab things out again and execute them.
| 
| As I wrote that,  I realise dthat it would be interesting to see if that file
| couldn't be made a ZODB storage so I could transfer
| structured information 'tween Zope and a python admin backend; perhaps make it
| a mountable storage from the zope point of view? This would have the added
| advantage of a little mild 'security through obscurity' for the file format for
| casual hackers who may get near to it one day ...

You are intrinsically reducing the platforms your software will run on as
soon as you start trying to use external programs. If you only care about 
Linux, then that's all well and good.

If you have a transaction database for polling, you may as well run
another Zope as root, that only listens on the loopback device, and post
the transactions into the root zope across SSL. At least that way you can
share code.

At least if you stick with the python API, you can cover most of the
platforms that python covers.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Is anyone know when Zope was born ???

2000-09-01 Thread Andrew Kenneth Milton

+---[ Paul Everitt ]--
| 
| As far as I'm concerned, Zope was born Saturday, June 8, 1996.  This was
| Jim Fulton's plane trip back from IPC4:
| 
|   http://www.python.org/workshops/1996-06/

That's the conception date, if you always skip straight to the birth, you're 
missing out on some fun d;)

| Within a year we added a
| template system, then a persistent object system, then...



-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

___
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] Regaining lost privileges

2000-09-01 Thread Andrew Kenneth Milton

Is there anyway to regain 'root' privs from inside a zope product?

Using the -u flag to start causes the privs to be permanently gone because
z2.py uses setuid + setgid (and python doesn't seem to define sete[ug]id, at
least not on my system).

Other than running zope as root permanently (which I really would like to
avoid), does anyone have any quick ideas on how to achieve this?

I saw people asking about building 'admin' systems using Zope, this isn't
going to be trivially possible without super user privs.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Not like ASP complaint - any good answers

2000-08-24 Thread Andrew Kenneth Milton

+---[ Sean McGrath ]--
| All,
| 
| I have had a number of e-mails from developers
| using Microsoft ASP in recent days. The paraphrased consensus
| in the e-mails is that the external
| methods/python methods approach to mixing markup
| with code in Zope is more clunky than in ASP where
| you can intermingle the two at will.

So don't use External or Python Methods. They are a small part of Zope,
and are usually used to do some complex logic or calculation. It is not 
normal to embed markup inside of Python or External methods.

I would suggest your developers have a lack of understanding of how
Zope operates, and also have a fear of the unknown and are grasping for
reasons not to use Zope.

If the best they can come up with is External Methods are more clunky than
ASP, and you don't need External Methods (not everyone does), then you have
a winner.

| Has anyone written anything on this topic I could
| point them to?

If you're really talking Python Products and not Python Methods, then
your developers really have no idea. Abstracting business logic into an
object which can 'render itself' in HTML if required, and can be customised
without using python to render in different ways, is obviously a better
idea than logic+markup in scattered files (and I don't just point the
finger at ASP here).

Quick and dirty, sure you can something a little more complex in ASP a 
little faster. If you have a large project, and you want it maintainable,
then this is not going to work for you, and I'm speaking from experience here
(30 + guys on one ASP project).
-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Linux and ODBC

2000-08-24 Thread Andrew Kenneth Milton

+---[ Tony Corrente ]--
| Hello.. 
| 
| I am currently using the openlink ODBC drivers to access Progress DB's
| on a HPUX System from A Linux Web Server using  Apache and PHP4. It
| Works... 
| The rest of my site has been moved to Zope.  Everything I've read states
| that the Zope DA's for ODBC only run under the Win32... Is anyone
| working on this ?? or how do I do it from Linux ??  I don't want to
| install a N(asty)T(hing)  server if I can avoid it.. 

Geez these things go in cycles...

Are you using the UDBC drivers or the ODBC drivers? I can help with the
former :-)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

___
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] Re: [Zope] Looping through a folder's contents...

2000-08-21 Thread Andrew Kenneth Milton

+---[ [EMAIL PROTECTED] ]--
| I would like to loop through the contents of a folder, and the
| contents of the subfolders of that folder.  I know I can do this to a
| singular level by doing something like:
| 
| dtml-in "subfolder.objectValues('Folder')"
| dtml-var title
| /dtml-in
| 
| Should give me a list of the titles of all the subfolders of the
| folder called "subfolder".  So, once I get there, how do I loop
| through the subobjects of each of those folders?
| 
| In other words, I have a subfolder inside of the folder called
| "subfolder" and I want to see the contents of that folder.  How do I
| do it?

I'll give you the general case for 'all' folders:-

Make a Method...  Recurse_SubFolder.

dtml-in "root.objectValues('Folder')"
dtml-in "_.range(depth)"nbsp;/dtml-indtml-var title
dtml-var "Recurse_SubFolder(root=this(),depth=depth+1)"
/dtml-in

-

dtml-var "Recurse_SubFolder(root=subfolder, depth=0)"


You can obviously expand this to also take a 'type' for objectValues,
and pass the namespace etc.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[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] Re: [Zope] Looping through a folder's contents...

2000-08-21 Thread Andrew Kenneth Milton

+---[ [EMAIL PROTECTED] ]--
| What would the "Recurse_Subfolder" method do?
| 
|  dtml-in "root.objectValues('Folder')"
|  dtml-in "_.range(depth)"nbsp;/dtml-indtml-var title
|  dtml-var "Recurse_SubFolder(root=this(),depth=depth+1)"
|  /dtml-in

That *is* Recruse_Subfolder :-)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[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 )




Re: [Zope] Looping through a folder's contents...

2000-08-21 Thread Andrew Kenneth Milton

+---[ [EMAIL PROTECTED] ]--
| I would like to loop through the contents of a folder, and the
| contents of the subfolders of that folder.  I know I can do this to a
| singular level by doing something like:
| 
| dtml-in "subfolder.objectValues('Folder')"
| dtml-var title
| /dtml-in
| 
| Should give me a list of the titles of all the subfolders of the
| folder called "subfolder".  So, once I get there, how do I loop
| through the subobjects of each of those folders?
| 
| In other words, I have a subfolder inside of the folder called
| "subfolder" and I want to see the contents of that folder.  How do I
| do it?

I'll give you the general case for 'all' folders:-

Make a Method...  Recurse_SubFolder.

dtml-in "root.objectValues('Folder')"
dtml-in "_.range(depth)"nbsp;/dtml-indtml-var title
dtml-var "Recurse_SubFolder(root=this(),depth=depth+1)"
/dtml-in

-

dtml-var "Recurse_SubFolder(root=subfolder, depth=0)"


You can obviously expand this to also take a 'type' for objectValues,
and pass the namespace etc.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Looping through a folder's contents...

2000-08-21 Thread Andrew Kenneth Milton

+---[ Jason Cunliffe ]--
| Hello
| 
| oops!.. I just tried this and now I am getting error messages saying "not
| authorized" to access 'objectValues' - stranger yet seems to have broken my
| login to Zope - so I am locked out from even getting back into the site to
| fix ..hmm this can't be right.

It's probably real busy traversing your entire site right now...
Control Panel, acl_users, *everything*

| I had put the Recurse_SubFolder method at top level, hoping to use it
| liberally through the site. I then made a call to it from my site's root
| index_html

Yep see above. You kamikaze you. You are a bad bad puppy.

| Any ideas how to restore my Zope?

Probably just restarting it will do the trick nicely.

Then you will be modifying the method to return if the depth exceeds say 5.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Looping through a folder's contents...

2000-08-21 Thread Andrew Kenneth Milton

+---[ Phil Harris ]--
| Andrew,
| 
| You *almost* seem to be enjoying this ;)

Until I get sued for code I paste to a mailing list d8)

The day will come, mark my words, that someone will get sued for 
trying to help.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] calling (SQL) methods dynamically from External methods

2000-08-21 Thread Andrew Kenneth Milton

+---[ Philipp Auersperg ]--
| Thanks for the answer, it helped me, 
| but you missed what I really wanted.

Sorry. d8)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Looping through a folder's contents...

2000-08-21 Thread Andrew Kenneth Milton

+---[ [EMAIL PROTECTED] ]--
| What would the "Recurse_Subfolder" method do?
| 
|  dtml-in "root.objectValues('Folder')"
|  dtml-in "_.range(depth)"nbsp;/dtml-indtml-var title
|  dtml-var "Recurse_SubFolder(root=this(),depth=depth+1)"
|  /dtml-in

That *is* Recruse_Subfolder :-)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] dtml-comment doesn't?

2000-08-20 Thread Andrew Kenneth Milton

+---[ Jan H. Haul ]--
| Tino Wildenhain wrote:
|
|  dtml-comment is a tag like all the other tags. It does not
|  control the parser. One advantage is, you may nest comment-tags.
| 
| True.
| But still, the parser could read over all comments as long as the
| dtml-comment tags are properly nested.

But then you'd have to parse the contents to find out if the comments are
properly nested...

I've looked at this briefly today, and the code inside DT_String.py is
recursively ugly... d;)

It doesn't look difficult to provide what you want, but, I'm not motivated
enough to fix it either at this stage. d8)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] calling (SQL) methods dynamically from External methods

2000-08-20 Thread Andrew Kenneth Milton

+---[ Philipp Auersperg ]--
| 
| What I want to do is calling a SQL method given its
| name as string, so I first have to get the method out of
| the self.__dict__ and then call it. I need that for calling
| the SQL methods dynamically for example out of an URL
| string.

realConnection=getattr(self,connectionId)
realConnection().query(query_in_a_string)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Nested Tag Creation

2000-08-18 Thread Andrew Kenneth Milton

+---[ Dieter Maurer ]--
| Andrew Kenneth Milton writes:
|   I want to create a tag that has sub-tags.
|   
|   Now I know I can use blockContinuations to approximate this, but, I
|   think it would be cleaner to be able to define tags that are only available
|   within the context of the main tag (namespaces and all that).
|
| Have a look at "sqlgroup" in "Shared.DC.ZRDB.sqlgroup".
| It does that, so you can learn how to do something similar.

I spent some time trying to think of a Zope tag that did this, I forgot
all about sqlgroup, and sqltest. 

Thanks!

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Nested Tag Creation

2000-08-18 Thread Andrew Kenneth Milton

+---[ Dieter Maurer ]--
| Andrew Kenneth Milton writes:
|   I want to create a tag that has sub-tags.
|   
|   Now I know I can use blockContinuations to approximate this, but, I
|   think it would be cleaner to be able to define tags that are only available
|   within the context of the main tag (namespaces and all that).
| Have a look at "sqlgroup" in "Shared.DC.ZRDB.sqlgroup".
| It does that, so you can learn how to do something similar.

SQL defines a new document type 'sql template' and defines the tag within
that template only, and there's no implicit nesting of the tags.

It doesn't look currently possible do define a general use tag that works
the way I want (yet). I'll keep looking at it. I might be able to define
the commands[] inside the actual tag, but, I don't think that that's going to
work.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

___
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] Nested Tag Creation

2000-08-17 Thread Andrew Kenneth Milton

I want to create a tag that has sub-tags.

Now I know I can use blockContinuations to approximate this, but, I
think it would be cleaner to be able to define tags that are only available
within the context of the main tag (namespaces and all that).

Is this possible? 
Without rolling my own parser ?

I don't see a lot of tag products being released so I assume that this is
not a widely used thing for Zope.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Seeking Zope Volunteers

2000-08-15 Thread Andrew Kenneth Milton

y+---[ Dieter Maurer ]--
| Andrew Kenneth Milton writes:
|   +---[ Lyno Sullivan, Candidate ]--
|   | Greetings,
|   | 
|   | My name is Lyno Sullivan and I am the endorsed Independence Party (see
|   
|   [ snip ]
|   
|   And you are now Lyno Sullivan, Spammer and in violation of your own laws.
|
| I would not be that hard.
| 
| I think political support is essential for the free software movement.
| I see this in Europe where the European Commission prepares
| to make software and business rules patentable -- a nightmare
| for free software and free lookfeel.
| Therefore, it is not bad for the free software movement to support
| the right politics.

Volunteers is tolerable, campaign donations is an entirely different ballgame.
Especially since on one hand they're not taking donations from 'special
interest groups.' The "Free Software Movement" is a special interest group,
if they don't support special interest groups then they don't support you.

| I, personnally, do not mind *one time* announcements of the above
| kind.

I do. One time announcements belong on mailing-lists like zope-announce, or
zope-chat. We have enough people who rouse when stuff is off topic 
(like this whole thread, and I do apologise for continuing it),
without the introduction postings about stuff that is completely and 
totally unrelated.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Make a Python Products Add list show only certain meta types?

2000-08-12 Thread Andrew Kenneth Milton

+[ Kapil Thangavelu ]-
| Kevin Howe wrote:
|  
|  I have a custom Python class (Container)  which uses Folder as it's base
|  class. I also have a custom Python class (AnObject). I want it so that when
|  you view a Container object, "AnObject" will be the only meta_type available
|  to be added in the Add List. The problem is that since Container inherits
|  from Folder, the Add List makes all object types available to be added. Is
|  there any way to tell a class to show only certain meta_types?
|  
|  Kevin
|  
| 
| There is more than one way. The proper way would probably to be adjust
| the security settings on your class in python (filtered_metatypes?). 

The simplest way is to;

all_meta_types=meta_types=({'name':'Sub Object1',
'action':'manage_addSubObject1Form',},
   {'name':'Sub Object2',
'action':'manage_addObject2Form',},)

In your 'base' product.

If you don't register your sub objects in __init__.py you will also
need to import their 'constructors' into your base class, and explictly
declare the icon under misc_


-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] More threading

2000-08-09 Thread Andrew Kenneth Milton

+[ Chris Withers ]-
| Nicholas Lo wrote:
|  so, is there anyway to make database routines run in separate threads?
| 
| Me too! (tm)
| 
| What I'd really like to do is to cpu intensive stuff (like mass
| cataloging ;-) in a seperate thread or process so that Zope's
| responsiveness doesn't die when those things happen (even though it's
| running on a multiprocessor machine ;-)
| 
| Any ideas?

Multiple database connectors...

Multiple Zopes + ZEO...

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Batchpeocessing with multiple selection

2000-08-02 Thread Andrew Kenneth Milton

+[ vikas ]-

| the varibles are not geting passed again when i click on next sequence.

You have to pass the variables, to the page that *does the query*
The query is run every time, just different results are displayed.

If this is a problem, check out the advanced properties for your query
and cache the query for a few minutes.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] dtml-calendar question.

2000-08-02 Thread Andrew Kenneth Milton

+[ R. David Murray ]-
| On Sat, 12 Aug 2000, tom smith wrote:
|  dtml-in get_days_events(dtml-var "date.mm()"/dtml-var
|  "date.dd()"/dtml-var "date.yy()")
| 
| Untested:
| 
| dtml-in expr="get_days_events('%s/%s/%' % (date.mm(),date.dd(),date.yy())"
| 
| Inside the quotes you are in Python...

kind of...

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] dtml-calendar question.

2000-08-02 Thread Andrew Kenneth Milton

+[ R. David Murray ]-
| On Thu, 3 Aug 2000, Andrew Kenneth Milton wrote:
|  | Untested:
|  | 
|  | dtml-in expr="get_days_events('%s/%s/%' % (date.mm(),date.dd(),date.yy())"
|  | 
|  | Inside the quotes you are in Python...
|  
|  kind of...
| 
| Well, yeah.  A restricted python environment.  The point being, it follows
| python syntax rules grin.

kind of... :-)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] ZODBCDA 3.1.0b2 and Zope 2.2 as a Service on NT

2000-08-02 Thread Andrew Kenneth Milton

+[ Jim Sanford ]-
|
| I am having problems with Zope 2.2 and ZODBCDA 3.1.0b2. When I start Zope manually 
|with the start.bat my ZSQL methods work fine.
| When I start Zope as a service, every ZSQL method returns a SQL error that states 
|that the table I am looking for does not exist.
| 
| Anybody out there know what's going on?

You have some environment variables set, that aren't set when you start
it as a service. Check the start.bat file, and also check your environment
in a DOS Window for variables that could be needed.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Snapshots and Demo of Products

2000-07-28 Thread Andrew Kenneth Milton

+[ Peter Bengtsson ]-
|
| This is especially important for the Zope product itself. I have noticed
| that the first thing I do when I browse zope competitors homesites, is to
| look at screenshots.

Screenshots of the website you're currently looking at probably won't have
the impact you would expect

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Andrew Kenneth Milton

+[ Brian Lloyd ]-
| Hi all -
| 
| There has recently been some confusion over the expected 
| behavior of various approaches to DateTime formatting in 
| Zope regarding timezone representation. I would like to 
| resolve this for the next release by making a proposal 
| and asking you to reply to the list with a "vote":
| 
|   +1 == agree
| 
|   +/-0 == no strong opinion
| 
|   -1 == disagree

You will only ever see votes from people wanting change... apathy rules
otherwise. Then when it changes you'll see a whole bunch of bitching about 
the change, and how there's 1,000 people on the list and only 20 people
voted... etc. d8) Mailling list votes are often a bad idea...

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

___
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] Announce: WiFLZ Simple Widget Framework for Zope

2000-07-23 Thread Andrew Kenneth Milton

Greetings once again,

This is the start of the Widget Framework for Zope.

http://www.zope.org/Members/TheJester/WiFLZ/

It's an attempt at building something for re-use slightly more cohesive
than methods and documents, and slightly less cohesive than Products and
ZClasses.

README Excerpt:


WiFLZ is a dtml widget framework for Zope. If you are a programmer, you
will probably hate it. It's not called ZWiFL because I was sick of things
starting with Z d8)


Summary
===

o Widgets consist of; 
   - header, body, and footer dtml,
   - optional arguments for the dtml template,
   - sql query,
   - optional arguments for the sql template, and
   - description field for built-in 'help' facility.

o Widgets can be tested from the management interface.
o Widgets can be ZODB backed, DB backed, or both.
o Widgets can be optionally rendered to a DB effectively caching widget 
  states, which is useful for slow changing, or time consuming things such
  as reports.
o Cached Widgets have a configurable TTL.
o DB Backed widgets can be grouped into different libraries, and
  can be called from specific libraries allowing test widgets to be setup
  without compromising production widgets.
o DB Backed widgets can be edited from any Zope installation with access
  to the DB.


Purpose
===

This is part of a broader system for site design still under development.

Zope currently lacks a mid level 'reuse' facility, reuse is limited to
very fine grained (individual methods, and documents), or very coarse grained
(products) elements.

Content managers also like to be able to 'build' components that can be
used in different parts of the site, and they like to be able to 'hold'
those components.

This system does not remove the ability to have fine grained reuse, as
all of the dtml stored is resolved, so any methods you have developed can
be used in a widget (e.g. incorporating ZBabel translations into widgets).

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] re: Meta Type Registry

2000-07-23 Thread Andrew Kenneth Milton

+[ Steve Alexander ]-
| Andrew Kenneth Milton wrote:
|
|  I'm not sure that Zope will actually let you successfully register two
|  classes or baseclasses with the same meta-type... 
| 
| The meta-type is further qualified by the name of the Product. This
| works without a problem if you're writing Python products, but there are
| some difficulties if you want to have two ZClasses with the same name.
| 
for item in cat.objectValues():
if item.meta_type == "Category":

What about code like this ? While this one is explicitly searching for 
sub objects, I have code that searches the acquisition path for 
known meta_types, if someone else has a product with a meta_type I think
is mine, then bad things can happen... Cataloging also might cause an issue.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] re: Meta Type Registry

2000-07-22 Thread Andrew Kenneth Milton

+[ Steve Alexander ]-
| Andrew Kenneth Milton wrote:
|  
|  Is there a Product Builders meta-type registry somewhere?
|  
|  I can see things getting messed up in the near future as the number of
|  products proliferates and meta-types start to clash.
| 
| I just tried adding a new ZClass in a new Product in my Zope 2.2 final
| installation.
| 
| The multiple-selection widgit for choosing the base-classes has all the
| available meta-types prefixed with the name of their product, followed
| by a colon.

I'm not sure that Zope will actually let you successfully register two
classes or baseclasses with the same meta-type... That's the real problem,
and while a cursory examination of the Zope site will reveal product
names to avoid clashing with, it's a lot harder short of installing every
single product to find out what meta-types those products register.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Entity syntax and 2.2

2000-07-21 Thread Andrew Kenneth Milton

+[ [EMAIL PROTECTED] ]-
|
| Perhaps you can suggest a simple way to do something like the following:
| 
| dtml-if "REQUEST.form.has_key('foo')"
|   dtml-let previouslyEnteredValue="REQUEST.form['foo']
|  input type=text ... value="dtml-previouslyEnteredValue;"
|   /dtml-let
| dtml-else
|  input type=text ... value=""
| /dtml-if

Replace the whole mess with:-

input type="TEXT" value="dtml.missing-foo;"


-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] ZBabel performance??

2000-07-20 Thread Andrew Kenneth Milton

+[ [EMAIL PROTECTED] ]-
| Hi,
| 
| I was able to install and test the ZBabel product.
| Very nice product indeed!!  I have a question about performance..

Thanks :-)

[...snip...]

|  However my concern that if the page is accessed by thousands
| of people, does Zope cache the translated text and serve it? does ZBabel
| do that? or is there a way to do that?

If you are passing query_string parameters into your page you will
not be able to cache the pages anyway.

If a page is cacheable then you can setup a HTTP accellerator in front of
Zope that will cache the rendered pages. I don't know what your current
network topology is like, so it's a little hard to comment.

I can look at adding caching into ZBabel, but, it's not high on my priority
list at the moment... I'm currently pounding the bricks. I'll try to make
time over the weekend to have a look (I may be able to use the Zope 
Machinery to do the caching).

| I do not want to hit the database
| everytime someone requests that page.. Our site is usually translated to 5
| languages and we had developed a Perl script that would read php tags and
| create static pages becuase of that problem, and in this case we do not
| know at all what happend in eth backend..

Out of interest how many hits per hour are you doing?

I worked on a largish portal system (ASP *puke*) and they had no problem
going to the DB very very frequently. The key for the phrase is 32 bytes,
it should be very quick to look up, even in a poorly tuned MySQL.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] ZBabel performance??

2000-07-20 Thread Andrew Kenneth Milton

+[ [EMAIL PROTECTED] ]-

Snip...

| translated.  However my concern that if the page is accessed by thousands
| of people, does Zope cache the translated text and serve it? does ZBabel

I've added caching of phrase lookups using the ZSQL Methods caching
facilties, it should cache up to 1,000 different phrases for 60 seconds.

There is a 0.0.2 release on zope.org now.

http://www.zope.org/Members/TheJester/ZBabel/

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

___
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] Announce: ZBabel a Translation Assistant for Zope

2000-07-18 Thread Andrew Kenneth Milton

Some people have been bugging me to release this so here we go:-

http://www.zope.org/Members/TheJester/ZBabel/

The doco is shambolic to say the least, and there are no examples at
the moment and no list of what hooks are available.

It does not automatically translate for you, it assists you to build
a multi-lingual site once, and then maintain it in different languages,
rather than building it once for every language (or rebuilding the same
thing over and over).

It does however make it pretty easy to get things going fairly cheaply.

There is a trade off between resuable phrase lengths and making phrases
unambiguous that you have to deal with.

If it breaks, you get to keep both bits.

Readme Excerpt:



This is the ZBabel Translation System for ZOPE, the Z Object Publishing 
Environment (http://www.zope.org/)

This is a phrase by phrase translation system, it allows you to translate
key parts of your site, and the content if you desire. With this you don't
need to maintain seperate source for each supported language, or mix different
languages in your source. You can do your entire site in one language and
then translate it without re-editing the source code.

This system also automatically creates the catalogs as you go, you do not 
need to manually insert text strings into databases for translation.

ZBabel comes as a two part kit, to help you with translating your ZOPE Content.

The first part is the tag dtml-babel which allows you to register and
translate your phrases.

The second part is a the ZBabel Tower Product. This is a Folderish Object
that does most of the legwork. You will need a ZBabel Tower Product installed
somewhere that your documents can acquire it if you want translations to occur.
If you do not install the product, the dtml-babel tag will simply return
the existing text.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Announce: ZBabel a Translation Assistant for Zope

2000-07-18 Thread Andrew Kenneth Milton

+[ Albert Langer ]-
|
| Thanks for "ZBabel". I've only just downloaded it and haven't played with it
| yet, but from just reading through, it looks like it will be a great
| approach!

Ta.

| One thing I'm not clear on, which you might want to deal with in future
| releases, either by documenting what wasn't obvious to me, or by adding a
| separate layer, is how to deal with "Composite Strings". Often a "phrase"
| that will need translation is a concatenation of more than one text string
| with embedded dynamically generated parameters, such as a date, name, price
| etc. In different languages the actual ordering of the concatenated elements
| may differ and the structure of the destination language may even result in
| a different number of text strings to translate than for the source
| language.

I'm not a linguist nor do I play one on TV d8). This system is obviously
not ideal for very dynamic content, what it is useful for is as you 
describe below, UI elements.

Dates, and currency, time etc are usually best handled by fixed catalogs
(usually provided by the operating system) where sort orders etc are already 
well defined and well handled. You can usually change your locale on the
fly before calling the routines that require a known locale to function
correctly.

| Often the original author of a dynamically generated web page will be
| tempted to use a repeated string for common parts of different UI strings,
| which cannot in fact be translated that way for other languages.

You must be disciplined and try to include as much context as possible,
especially when your source language is going to be something as 
crappy as English is. Generally it pays not to be lazy when it comes
to translating, and it also pays to have a good thesaurus on hand for
replacing really common words with multiple meanings like 'bank' which
annoying for having three common meanings.

| I would imagine that Zope is ideally suited to using some sort of class for
| each composite, with properties for the phrase identifier and the
| constituent dynamically generated parameters, and leaving it to the specific
| translation to determine the number and positioning of the elements
| required.
| 
| Is that already taken into account somehow by allowing the embedding of DTML
| within the text phrase to be translated?

Yes you can embed DTML inside the block and it will resolve all of the
DTML before translating the result. You can turn this behaviour off.
This is why I opted for a container tag, rather than a simple tag.

| Finally, is there some way that the "magic" behind Zwicki structured text
| formatting could be used, to allow an author to just write the phrase in
| their own language and automatically generate related DTML tags for
| parameters etc?
|
|  (Rather vague idea I know, but somehow make it easier for
| people just writing content, like Zwiki contributors, to know nothing about
| DTML at all, yet still make it easier for scripters to integrate their
| translatable content with DTML as well as integrating with HTML layout).

I have another project on my TO DO list which is a dynamic components
product which this would integrate well with.

Any "Form Generation" products would probably be able to integrate
the same stuff as well fairly easily.

It is rather intrusive I know, but, there are few if any options that
don't require massive amounts of effort to achieve the same thing. 
Especially building the catalogs. I know of another ASP based system
that's pretty much the same as this, but, they have to go through
and change the source code after translating (they have to provide a
dummy 'phrase id' which is then altered). It is really really ugly.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Announce: ZBabel a Translation Assistant for Zope

2000-07-18 Thread Andrew Kenneth Milton

+[ Albert Langer ]-
[Charset iso-8859-1 unsupported, filtering to ASCII...]
| [Andrew]
| Yes you can embed DTML inside the block and it will resolve all of the
| DTML before translating the result. You can turn this behaviour off.
| This is why I opted for a container tag, rather than a simple tag.
| 
| [Albert]
| That is what I am still not clear on. Noticed the container, but still
| confused about "literal" and about "before", "after", "off" and "on".
| 
| Suppose web site in source language has something like this:
| 
| 'Click A href="{fieldX(someVar.A)}"here/A, for {fieldY(someVar.B)}'
| 
| With suitably horrific DTML instead of ' ' and {}.
| 
| Rendered english result would be, for some particular dynamic instance of
| someVar:
| 
| 'Click A href="http://www.zope.org/"here/A for Zope'
| 
| Translator for language X decides to reverse the positions of fieldA and
| fieldB and use 3 separate substrings, because it is too abrupt for that
| language, so translates to something like:
| 
| 'If you would like {fieldY(someVar.B)}, click A
| href="{fieldX(someVar.A)}"this link/A, please'

Aha! This is not translation d8) This is re-wording and then translating,
which is a bit of fine hair splitting I know. If you reached a point
where something couldn't be translated, you would have to revisit the source.

| There are now 3 substrings in the translation because it would be rude not
| to start or end with something like "please" in language X, and it reads
| better with the fields reversed in that language.
| 
| Final rendered result becomes (in language X):
| 
| 'If you would like Zope, click A href="http://www.zope.org/"this link/A,
| please'
| 
| depending on the particular value of someVar at the time.
| 
| Does ZBabel allow this? If so, that's *exactly* what I was hoping for.


I think it does what you want to do...

dtml-babel src="langA" dst="langX"dtml-var GreetAndLink/dtml-babel

GreetAndLink...
Click a href="dtml-langXUrl;" For dtml-var AJollyRogering


You would end up with the following to be translated:-

Click a href="the.langx.url" For a good langX clicking

So you would end up with a phrase that would be partially
translated ready for translating because your langXUrl and
AJollyRogering already do some localisation.

However if langXUrl and AJollyRogering are dynamic you should probably 
not wrap them in dtml-babel tags.

| [Andrew]
| I have another project on my TO DO list which is a dynamic components
| product which this would integrate well with.
| 
| Any "Form Generation" products would probably be able to integrate
| the same stuff as well fairly easily.
| 
| It is rather intrusive I know, but, there are few if any options that
| don't require massive amounts of effort to achieve the same thing.
| Especially building the catalogs. I know of another ASP based system
| that's pretty much the same as this, but, they have to go through
| and change the source code after translating (they have to provide a
| dummy 'phrase id' which is then altered). It is really really ugly.
| 
| [Albert]
| The lack of a dummy "phrase id" is what I thought was really great about
| your approach. Thanks!
| 
| I regard HTML/DTML as possibly avoidable clutter in the same way that a
| "phrase id" is.
| 
| If ZBabel already does what I asked above, my question about something
| closer to Zwiki structured text might be more clear in terms of wondering
| whether anything can be done to hide the HTML/DTML tagging and field coding
| from the translator by giving them some sort of template like this:
| 
| 'Click [here] for {Zope}'
| 
| So that they would translate it to:
| 
| 'If you would like {Zope} click [this link[here]], please'
| 
| Note that the two original substrings of ordinary text AND the [bracketed]
| text all denote elements to be translated, while the text in {braces} does
| not, but is sample data visible in the UI as a prototype example for the
| translator.

You can do this by nesting dtml-babel calls...

dtml-babeldtml-babelClick here/dtml-babel dtml-babelfor 
Zope/dtml-babel/dtml-babel

Would yield the following to be translated:-
o Click here
o for Zope
o Click here for Zope

| Then the magic which extracted the HTML (and DTML) tagging and field names
| etc to give the translator something more understandable, would just stick
| it back in, replacing "here" with "this link", but ALSO restoring the
| surrounding DTML/HTML for that element and for the {Zope} element, in much
| the same way that you already do not need a "phrase id" but work directly
| with the text. Translators understand prototypes much more easily than they
| understand web pages.
| 
| (Also useful for content managers cf HTML/DTML designers and convenient for
| HTML/DTML designers too ;-).
| 
| Any possibility of doing that automatically? By clicking "generate
| template", a web developer might be able to generate simplified template
| strings like above for the translator, using a 

Re: [Zope] How to deal with MySQL's LAST_INSERT_ID() sensibly?

2000-07-11 Thread Andrew Kenneth Milton

+[ Stefan Franke ]-
|
| As far as I understand from the MySQL manuals, the value of LAST_INSERT_ID()
| is maintained on a per-connection basis (wish it would be
| per-connection/per-table;
| a LAST_INSERT_ID(table_name) would make much more sense in combination
| with
| table locking, but anyway..).

It's per thread (MySQL thread).

| I have a number of ZSqlMethods and Python methods that share a DB
| connection.
| I see two kinds of possible race conditions here:
| 
| 1. Queries to different tables occur simultanously and affect the value of
|LAST_INSERT_ID(). This could propably be solved by creating multiple
|connections for each different kind of INSERT command.

This can only happen if you have multiple threads, in which case
each thread will have its own last_insert_id. You should pull the
last_insert_id out when you do the insert (in the same ZSQL Method).

| 2. Multiple requests trigger the same query which leads to confusion.

You need to have 

a) Multiple CPUs to handle multiple requests simultaneously, otherwise
   one will always 'win'. This also assumes you have a fairly good SMP OS,
   Linux isn't, so even with multiple CPUs I think you'll find it gets
   serialised by the kernel.

| 
| My question is if 2. is really a possible problem. I don't know enough about
| database adapters and Zope threading. Are queries serialized by DB
| connections
| or by SQL Methods?

The DA determines it's level of concurrency, some DAs are not threadsafe
and therefore can only do one query at a time.

I think the other two levels are:-

Allow concurrent accesses for different connections -- requests to
different DB Connections are allowed in parallel.

Allow concurrent accesses across all connections (Oracle I think) --
all requests are handled in parallel.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] error going from 2.1.6 to 2.2b3

2000-07-05 Thread Andrew Kenneth Milton

+[ Anders Holmbech Nielsen ]-
| Hi,
| 
| when trying to import  an object made in 2.1.6 into 2.2b3 i get this 
| error. What could be the problem ?

I can't help with the error, but, you can try exporting as XML and
importing the XML. I find this to work a little more reliably between
Zope Versions when zexp fails.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] error going from 2.1.6 to 2.2b3

2000-07-05 Thread Andrew Kenneth Milton

+[ Anders Holmbech Nielsen ]-
| +[ Anders Holmbech Nielsen ]-
| | Hi,
| |
| | when trying to import  an object made in 2.1.6 into 2.2b3 i get this
| | error. What could be the problem ?
| 
| I can't help with the error, but, you can try exporting as XML and
| importing the XML. I find this to work a little more reliably between
| Zope Versions when zexp fails.
| 
| 
| Sorry to say: That didn't do it! Same error.

Do you have the same classes and Zclasses installed on both ?

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] uploading from client PC in MySQL thru ZSQL

2000-07-04 Thread Andrew Kenneth Milton

+[ Didier Georgieff ]-
|
| SQL used:
| LOAD DATA LOCAL INFILE 'D:/Data/SIT67/AnnuaireTest.csv' 
| INTO TABLE annuaire FIELDS TERMINATED BY ';'

Local means local to the actual mysql client (your webserver), not local to 
your user (browser).

You could get your form to upload the file to a LocalFS directory and
then use that path the INFILE.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] About Powered by Zope...very simple, isn't it?

2000-07-04 Thread Andrew Kenneth Milton

+[ Pierre Rougier ]-
| Hi zopatistas,
| well... this is not a very important thing, but I would like to remove
| the picture "Powered by Zope" at the end of my Zope Pages...
| is it possible..? I though it was in the "standard html header" but it
| seems that it is not...gasp...
| someone can help me?
| 

It's in standard_html_footer, you were pretty close.


-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] too many open files

2000-07-04 Thread Andrew Kenneth Milton

+[ Ragnar Beer ]-
| Help!
| 
| Zope 2.1.6 refuses to work in the middle of an external method on my 
| i386 running under OpenBSD 2.7. Is says:
| 
| OSError
| [Errno 24] Too many open files: '[EMAIL PROTECTED]'
| 
| 
| I've never ever seen this problem before and this external method 
| used to work well until some minutes ago. Now the error keeps 
| reappearing even after rebooting and also other external methods that 
| used to run well now deliver the same message.
| 
| Does anybody have suggestions how to diagnose/cure this problem?

You have several options:-

First type 'unlimit' at your prompt before you start Zope (or in a
shell script).
This should raise your max files from 64 to 800+

You should verfiy this by typing 'limits' at a prompt to see what
the settings are before and after the unlimit.

Next you can increase the MAXUSERS in your kernel conf to something larger
(say over 100) which will increase the maximum number of file descriptors
available and increase the number network buffers availalble (which you
will need for a webserver anyway)


-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Is there a better way to code this?

2000-07-03 Thread Andrew Kenneth Milton

+[ Luke Tymowski ]-
| Hello,
| 
| I'm still having trouble trying to get Zope to use/ignore header and footer 
| code in the appropriate places.

...snip...


| So. Is there a better way to do this? Or is the above meet and right and 
| not worthy of shame? I want to write a How-To so other newbies don't have 
| to go through what I did.

You should set flags to say when it's safe to render the header/footer,
or you should remove the header/footer calls from documents you want to
embed.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Is there a better way to code this?

2000-07-03 Thread Andrew Kenneth Milton

+[ Luke Tymowski ]-
| Hello Andrew,
| 
| You should set flags to say when it's safe to render the header/footer,
| or you should remove the header/footer calls from documents you want to
| embed.
| 
| Can't do the latter.
| I'm building a weblog. I need to have the user enter entries for each day. 
| I need for each day to display properly on its own - which means each needs 
| header and footer code.

No it doesn't. You need to seperate content, and structure.

Each day can simply be
dtml-var standard_html_header
dtml-var day_content
dtml-var standard_html_footer

Where day_content is what you have now sans header and footer.

I don't know your structure, but, this is how I would do it knowing that...

| And I need the front page to be created on the fly, 
| consisting of the three latest entries, but, of course, without the header 
| and footer code appearing in the body of the document.

Yep you can get the content...

| It now works as it should, but I want to know if there is a more elegant 
| way of doing what I want to do. No point pointing fellow newbies at 
| something and then have one of the gurus suggest I could have done it much 
| more simply and elegantly.

Yes there is, and then you don't need all that hackery in the header/footer.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] What's wrong with this code?

2000-07-02 Thread Andrew Kenneth Milton

+[ Luke Tymowski ]-
| Hello,
| 
| When:
| dtml-unless renderedheader
| dtml-call "REQUEST.set('renderedheader',1)"
| blah blah
| /dtml-unless

...snip...

| If I create a simple page like:
| dtml-var standard_html_header
| pThis is some text./p
| dtml-var standard_html_footer
| 
| The footer doesn't get published.

I'll go the obvious answer straight up...

Because 'renderedHeader' is already set?
You want to change it to renderedFooter in the footer...

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] FOR loops?

2000-06-30 Thread Andrew Kenneth Milton

+[ Andy Gates ]-
| This ought to be easy:

...

| Presenting these in a SELECT input I want to show the indentation so 
| it's easy to see and use.  Obvious answer is to use nbsp; characters 
| to pad the values thus:

You have to drop to the python level I'm afraid...


| 
| select
| dtml-in sequence
|   option value="whatever"
| for loop=0 to entry-indent-value

dtml-in "_.range(entry_indent_value)"

|   nbsp;

/dtml-in

| /for
| entry-string-value
|   /dtml-in
| /select
| 
| So where does Zope hide its FOR loop?  Can't find the bugger anywhere!

You can find these things... you just have to know what you're looking for...

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

___
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] Re: [ZCommerce] Secure storage of credit card info

2000-06-29 Thread Andrew Kenneth Milton

+[ Curtis Maloney ]-
| On Fri, 30 Jun 2000, Andrew Kenneth Milton wrote:
|  Just to make those people who think "It will never happen to me" think
|  twice, the Australian Government Treasury site was hacked and lots of
|  banking details about lots of small businesses was released.
| 
|  The Australian Treasury was very happy with their security too. Until
|  yesterday.
| 
| Whilst I agree that "It will never happen to me" is a stupid stance, the ATO 
| web site was not 'hacked'.  As an example, the Federal Police and the 
| government are NOT doing anything to the person.

Last night I heard they were still looking for him. Of course ringing
JJJ first wasn't exactly a smart idea.

| What happened was somebody noticed that a number in the URL for a page of 
| their details matched their ID number, and tried some others.  Upon finding 
| they worked, he wrote a script to try numbers, munge the page, and e-mail 
| people their details.

And the site is down 'indefinitely'.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] How-to Bypass DTML Code?

2000-06-26 Thread Andrew Kenneth Milton

+[ Nestor A. Diaz L. ]-
| Hi, anyone know how to bypass the dtml-code, that's because i'm writing a
| howto with showing the use of some "dtml-tags" so it tries to interpreting
| it rather than only showing them.
| 

It's easy:-

Make a method called 

printCode which contains one line:

dtml-return "CodeToPrint"

Then to display a method or a document:-

dtml-var "printCode(CodeToPrint=standard_html_header)"

Will print your standard_html_header, you will probably want

dtml-var "printCode(CodeToPrint=standard_html_header)" newline_to_br

The advantage of this, is that you can use actual methods (if you're doing
a tutorial). So when you change the method, your documentation updates itself.

If you just want to pass strings into printCode, you can do that too.

dtml-var "printCode(CodeToPrint='dtml-var FunnyVar')"


-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] MySQLDA Problems with simple constant/function queries

2000-06-24 Thread Andrew Kenneth Milton

+[ Stefan Franke ]-
[Charset iso-8859-1 unsupported, filtering to ASCII...]
| I'm using MySQLDA 1.1.3 on Win32. When I type the following queries
| into the test tab edit box, I get the traceback below:
| 
|   select LAST_INSERT_ID()
| 
| or
| 
|   select 1 from table

I can give you work_arounds for both cases:-

select 1 from foo as One

select CONV(LAST_INSERT_ID(),10,10) AS LAST_INSERT_ID

This last one took me a little while to work out :-)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Starting Zope on FreeBSD 2.2.8---Python dumps core

2000-06-23 Thread Andrew Kenneth Milton

+[ Loren M. McCarter ]-
| I'm having difficulty starting Zope. 
| 
| Versions:
|   Zope: 2.1.6, compiled from source with "python wo_pcgi.py"
|   Python: 1.5.2, (#2, Jan 17 2000)  [GCC 2.7.2.1] on freebsd2
|   Python is compiled with pthreads enabled. 
|   FreeBSD: 2.2.8 (yes, I know it is outdated).

The FreeBSD threads support even up until 4.0-RELEASE was attrocious. You will
probably find that it is this thread support that is hosing your python, and
therfore your Zope.

Zope will run on FreeBSD 3.4, 3.5  quite well, but, you really want to
have 4.0-Stable on your machine.

You will have to upgrade the OS on your machine, be it a switch to
Linux, or an upgrade in FreeBSD.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] dtml-always et al

2000-06-23 Thread Andrew Kenneth Milton

+[ Lalo Martins ]-
| On Fri, Jun 23, 2000 at 12:49:16PM +0530, Shalabh Chaturvedi wrote:
|  Hi:
|  
|  Could you give an equivalent using the current dtml tags?
|  
|  From: Jay, Dylan [EMAIL PROTECTED]
|  
|   dtml-if X
|a href="a_url"
|   dtml-always
|link text
|   dtml-else
|(no link currently available)
|   dtml-then
|/a
|   /dtml-if
| 
| If I understood it correctly:
| 
| dtml-if X
|  a href="a_url"
| /dtml-if
|  link text
| dtml-if X
|  /a
| dtml-else
|  (no link currently available)
| /dtml-if
| 
| 
| Or alternatively:
| 
| dtml-if X
|  a href="a_url"link text/a
| dtml-else
|  link text (no link currently available)
| /dtml-if

Or sometimes you just need to rethink what "clean" is... and
where you want clean, and where you're willing to be a little dirty.

dtml-call "REQUEST.set('link_url','')"
dtml-call "REQUEST.set('link_end','(no link currently available)')"

dtml-if X
dtml-call "REQUEST.set('link_url','ahref=a_url')"
dtml-call "REQUEST.set('link_url','/a')"
/dtml-if


dtml-var link_urllink textdtml-var link_end

I would do it this way, if I could pre-set that text in an earlier
dtml-call and the programming logic, would mess up my display flow,
it works nicely for dtml-in where you have a list of URL's, and you
can hide the ugliness in another place.

dtml-in 'url-list'
dtml-call "setLinkText(REQUEST)"
dtml-var link_urllink textdtml-var link_end
/dtml-in 'url-list'


-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] ISP supporting zope

2000-06-18 Thread Andrew Kenneth Milton

+[ Rajil Saraswat ]-
| hi everyone,
|  can anybody give me names of ISP's providing zope support. I wil prefer
| US for the ISP locations. Is any such list available on the net or zope
| site.

Yes.
-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] ISP supporting zope

2000-06-18 Thread Andrew Kenneth Milton

+[ Rajil Saraswat ]-
| hi everyone,
|  can anybody give me names of ISP's providing zope support. I wil prefer
| US for the ISP locations. Is any such list available on the net or zope
| site.
| Thanks

Hrm obviously my Zen attempt to get you to help yourself failed
miserably, since you simply posted again without checking the obvious
places.

http://www.zope.org/Resources/

I'm not giving any more clues. If you want more help, you'll have to
buy a vowel, and since I've only got five left, they're very expensive d8)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Zope on NT - port problem

2000-06-14 Thread Andrew Kenneth Milton

+[ - - ]-
| Hi all
| 
| How do I customise the port number that Zope installs to? I'm
| running NT and there is already a service running on the default
| port 8080.

You have a few option...

-P and a number
-P 9000  means you get web on 9080 and you get ftp on 9021 and monitoring
 will be 9099

-w port (for just web)
-f port (for just ftp)

Have a quick look at z2.py for other groovy options you can set.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Referring to a total-xxx variable

2000-06-14 Thread Andrew Kenneth Milton

+[ [EMAIL PROTECTED] ]-
| 
| 
| Following on from my last posting I seem to have made a lot of progress -
| although still not sure if what I have done is the right thing or not. However,
| please somebody put me out of my misery. In the following code snippet the
| dtml-var part works fine. How can I, therefore,  add count-id to v_allItems? It
| seems to think I am trying to do subtraction. I've spent a couple of hours
| trying to find the mystical incantation.

Replace this

|dtml-call "REQUEST.set('v_allItems', v_allItems + count-id)"

with this

 dtml-call "REQUEST.set('v_allItems', v_allItems + _['count-id'])"

try to avoid hyphens in variable names as much as possible, it tends to
get messy.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] RSSChannel

2000-06-13 Thread Andrew Kenneth Milton

+[ Oleg Broytmann ]-
| On Tue, 13 Jun 2000, Martijn Pieters wrote:
|  It is listed, just under a different name. A search for 'RSS' lists a product
|  called 'Site Summary' by Edd Dumbill as the first hit. This is immediatly the
|  only product for Zope (that I know of) that is specifically tailored for
|  generating RSS channels:
|  
|http://www.zope.org/Members/edmundd/SiteSummary
| 
|Thanks, but I want to import RSS rather than generating it :) I want to
| import zope.org news, appwatch.com etc...

This also does this (albeit a tad crudely).

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

___
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] Re: [ZCommerce] Re: [Zope] Costs of implementation

2000-06-13 Thread Andrew Kenneth Milton

+[ J. Atwood ]-
|
| This is very rough but should be around the amount of time. This does 
| mean full "developing days" which are about 10-14 hours. I don't know 

Remind me to get paid by the hour if I ever do any work for you :-)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] Zope as a program

2000-06-13 Thread Andrew Kenneth Milton

+[ Malcolm C. Mallette ]-
| Zope is the sorst escuse for a program I have ever encountered.

Right after your spell-checker.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] zope as program

2000-06-13 Thread Andrew Kenneth Milton

+[ Malcolm C. Mallette ]-
| Zope is the worst excuse of a program I have ever encountered.

Haven't spent long in Microsoft land have you?

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] SINGOFF

2000-06-12 Thread Andrew Kenneth Milton

+[ [Juanjo Garc_a] ]-
|
| SINGOFF

La La La La

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] error (200)

2000-06-11 Thread Andrew Kenneth Milton

+[ Martijn Pieters ]-
|  On Sat, 10 Jun 2000, you wrote:
|   On Sat, Jun 10, 2000 at 09:47:54AM -0700, Mike Mikkelsen wrote:

[Lots of Snipping]

|This is the error that shows up on the console when going to Product Management
|or accessing the subdir that holds the subdir that has LoginManager:
|
|date ERROR (200) ZODB Couldn't Load State for
|'\000\000\000\000\000\000\002\017'
|| So, Tranalyzer says nothing is wrong, but you do get a load state error. 

I got this error after updating LoginManager, but, not the PTKDemo which
caused these errors.

Have you tried upating PTKDemo via CVS (if you're using PTK)? After I updated
these errors went away, or updating any Products you have that use the 
LoginManager?

It could be related to an old LoginManager instance hanging around.
Try removing and re-adding LoginManager instances.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




  1   2   >