[Zope] All the pretty Icons have gone

2006-11-15 Thread George Wright
As a  new learner of Zope & Plone (Plone 2.5). I am slowly working through ZopeBook-2.6.Most going well but  suddenly all screen icons have disappeared!.All I see is the alternative text. * Probably the last thing I was playing with is on page 110 of ZopeBook-2.6.pdfWhere I viewed directly "http://localhost:8080/p_/ZopeButton" - which still works• And did some experimenting with "standard_html_header"• It was about this stage that icons began to disappear• I have done some undos • I have restarted zope• I have restarted computer• I have tried an zope.org archive search without successEverything else seems to work OKAny help appreciated.George Wright ___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: zope hosting

2006-09-23 Thread George Lee
David H <[EMAIL PROTECTED]> writes:

> My understanding is that Zettai is closing down.  Bummer cause I have 
> been using them.


I know they are not accepting new orders, but I wasn't aware they are shutting
down. How have you heard? (I also have a Zettai account.)

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


Re: [Zope] data type

2006-06-19 Thread George
On 6/19/06, George <[EMAIL PROTECTED]> wrote:
On 6/19/06, Andreas Jung <
[EMAIL PROTECTED]> wrote:
--On 19. Juni 2006 15:11:42 +0300 George <[EMAIL PROTECTED]> wrote:> How can I find a variable's data type in dtml?
>> Sorry if it's sth obvious, thx in advance!
There is only the same_type() method available. Perhaps instance() butyou can't use the type() method of Python for security reasons.The Zope Book should explain the usage of same_type().-aj

OK, perfect! I have done it before, but  bad memory :)Thx for your quick response!

I wonder what are the security reasons... :)
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] data type

2006-06-19 Thread George
On 6/19/06, Andreas Jung <[EMAIL PROTECTED]> wrote:
--On 19. Juni 2006 15:11:42 +0300 George <[EMAIL PROTECTED]> wrote:> How can I find a variable's data type in dtml?>> Sorry if it's sth obvious, thx in advance!
There is only the same_type() method available. Perhaps instance() butyou can't use the type() method of Python for security reasons.The Zope Book should explain the usage of same_type().-aj
OK, perfect! I have done it before, but  bad memory :)Thx for your quick response!
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] data type

2006-06-19 Thread George
How can I find a variable's data type in dtml? Sorry if it's sth obvious, thx in advance!
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] data.fs packing

2006-04-27 Thread George
How much free space is required for a succesfull data.fs packing? My data.fs file size is 2,6 giga.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Question about Zope and security

2006-03-29 Thread George Lee
> > I'd rather encrypt passwords with a hash and reset the password if the 
> > users have lost it. Is it possible to do that in Zope?

Isn't there an option in GRUF to encrypt passwords?

Although I don't think that affects the user's sending of passwords over the 
Web.

Peace,
George

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


Re: [Zope] change objects id

2006-03-27 Thread George
Thx for the prompt responses! manage_renameObject was exactly what I needed!On 3/27/06, Patrick Decat <[EMAIL PROTECTED]
> wrote:container.manage_renameObject(old_id, new_id)On 3/27/06, George <
[EMAIL PROTECTED]> wrote:> How can I change an objects id from a python script? Sorry if it's sth> obvious, can't figute it out...>> ___
> Zope maillist  -  Zope@zope.org> http://mail.zope.org/mailman/listinfo/zope> **   No cross posts or HTML encoding!  **
> (Related lists ->  http://mail.zope.org/mailman/listinfo/zope-announce>  http://mail.zope.org/mailman/listinfo/zope-dev
 )>>>
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] change objects id

2006-03-27 Thread George
How can I change an objects id from a python script? Sorry if it's sth obvious, can't figute it out...
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: major problems placing authentication on an extranet site-security flaw?

2006-02-11 Thread George Lee
Scratch that, looking more closely at the thread it looks like you followed the
"make site private" documentation and it worked.

Peace,
George

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


[Zope] Re: major problems placing authentication on an extranet site-security flaw?

2006-02-11 Thread George Lee
michael nt milne <[EMAIL PROTECTED]> writes:

> HiI have major problems here trying to set-up authentication over a
> whole Plone site using Zope.

I'm not going to get involved in the large Zope security discussion but I will
post an additional something to plone-users in reply to the more narrow problem.
If you want additional help with it there, we'll need more details and debugging
from you. I usually like to help folks figure out bugs because it's a nice
problem solving stint, but I can't do much without more info.

Peace,
George

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


[Zope] Re: Method to return the properties of an object

2006-02-10 Thread George
On 2/10/06, George <[EMAIL PROTECTED]> wrote:
propertyMap()
 
  Returns a tuple of mappings, giving meta-data for properties.
  The meta-data includes id, type, and mode.Thx! Sorry for my blindness! :)
On 2/10/06, Tres Seaver <
[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-Hash: SHA1George wrote:> Is there a method to return the properties of an object?>> Sorry if it's sth obvious!*For properties defined via the "Properties" tab, use the API defined in
OFS.PropertyManager, e.g. 'propertyMap'.Tres.- --===Tres Seaver  +1 202-558-7113  

[EMAIL PROTECTED]Palladion Software   "Excellence by Design"http://palladion.com-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)Comment: Using GnuPG with Thunderbird - 
http://enigmail.mozdev.orgiD8DBQFD7JiY+gerLs4ltQ4RAhKnAKCSIx5apt9mabTVkh/4JkSizQ4JKwCggMuDi8vudlG9vI0POoDudbbAX/M=
=gw2Q-END PGP SIGNATURE-



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


[Zope] Method to return the properties of an object

2006-02-10 Thread George
Is there a method to return the properties of an object?Sorry if it's sth obvious!
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] add folder from the filesystem

2006-01-25 Thread George
Is there a way to add a folder with its contents from the filesystem into Zope using an external method?thx in [EMAIL PROTECTED]
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] SOLUTION -- Products have incorrect "home" attribute

2006-01-19 Thread George Lee
> After migrating to a new server, several of my Zope products have an
> incorrect "home" attribute that specifies where they live on the
> filesystem. However, when I try to change these attributes using an
> external method, the attributes do not change. Any help?
> 
> Peace,
> George


Turns out it was a bug in my external method, writing == instead of =, that
tripped me up. This is the external method I used:



OLD_INSTANCE_PROD_DIR_LIST = [
   '/home/BLUH1/zope/instance1/Products/',
   '/home/BLUH2/zope/instance1/Products/',
   ]
NEW_INSTANCE_PROD_DIR = '/usr/local/zope/instance1/Products/'

OLD_PYTHON_PROD_DIR_LIST = [
   '/usr/home/BLUH3/zope/270/lib/python/Products/',
   '/home/BLUH4/zope/273/lib/python/Products/',
   '/home/BLUH5/zope/281/lib/python/Products/',
   ]
NEW_PYTHON_PROD_DIR = '/usr/local/zope/284/lib/python/Products/'

def listHome(self):
   prods = self.Control_Panel.Products
   listBefore = []
   listAfter = []

   for p in prods.objectIds():
  homeBefore = prods._getOb(p).home
  listBefore = listBefore + [homeBefore]
  if homeBefore in map( lambda x : x + p, OLD_INSTANCE_PROD_DIR_LIST ):
 prods._getOb(p).home = NEW_INSTANCE_PROD_DIR + p
  elif homeBefore in map( lambda x : x + p, OLD_PYTHON_PROD_DIR_LIST ):
 prods._getOb(p).home = NEW_PYTHON_PROD_DIR + p
  listAfter = listAfter + [prods._getOb(p).home]

   return "Before: %s\n\nAfter: %s" % (str(listBefore),str(listAfter))

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


[Zope] Re: Newbee interfaces and implementations

2006-01-18 Thread George Lee
> So you recommend that I should just skip them as long as I'm on Zope2?
> 
> I would be happy with that. I find them confusing when they don't
> really interface with but just document my methods.

Some of the reasons interfaces can be helpful are (1) for documentation purposes
and clarity for code if someone needs to look at it, (2) if other classes might
use the same interface, you help make sure you're sticking to a common interface
so that the methods in different classes do similar things, and (3) you can use
methods like "isImplementedBy" so that certain templates, code, etc. does
something with an object or class if it uses the interface -- what you call
"really interfacing".

There's many examples of how (3) might work. It seems like for now that (3)
won't be important to you and (2) might be. Personally I define interfaces for
some classes (especially tools) to help with the documentation, but agree with
you that for other straightforward classes they don't help that much with
documetnation.

Hope this helps; peace,
George

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


[Zope] Re: Products have incorrect "home" attribute

2006-01-18 Thread George Lee
> I asked the same question a couple of days ago (see "wrong directoy in 
> Control_Panel.Products..home") and no, they aren't reset at zope 
> restart, and deleting the pyc files doesn't help either.

Thanks, didn't see the previous conversation. =)

I'll do the delete the Products objects trick ... any idea why it fails to just
directly change the attribute with an external method? I'm not savvy to the
inner workings of ZODB so I don't know if there's read-only attributes or
persistence issues (with a string attribute though?) here...


Peace,
Geroge

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


[Zope] Products have incorrect "home" attribute

2006-01-17 Thread George Lee
After migrating to a new server, several of my Zope products have an
incorrect "home" attribute that specifies where they live on the
filesystem. However, when I try to change these attributes using an
external method, the attributes do not change. Any help?

Peace,
George
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] External Methods, Proxy Roles, and Executable Security

2005-11-20 Thread George Lee
Great, thanks much.

Is there much buzz about this in CMF developer land? It seems like
proper proxy roles handling, and like you said what Zope 3 security
will do to it, are pretty important and will come up quite often (all
I was doing, after all, was trying to move an object upon workflow
change!).

Peace,
George


On 11/19/05, Dieter Maurer <[EMAIL PROTECTED]> wrote:
> George Lee wrote at 2005-11-19 00:46 -0500:
> >In CMFCore 1.5.4:
> >
> >If a low-security-clearance user calls an external method that pastes
> >an object from a PortalFolder, he gets an error because the following
> >line in CMFCore.PortalFolder fails:
> >
> >if not sm.checkPermission(DeleteObjects, parent):
> >   raise AccessControl_Unauthorized
> >
> >This is even the case if "sm.checkPermission" is changed to
> >"_checkPermission", which takes into account proxy roles. The external
> >method does not allow proxy roles attached, so I can't just add a
> >"Manager" proxy role.
> >
> >Because I called the pasting in an external method, I expected it to
> >go through without security problems! Is this a right expectation /
> >and a bug, or a wrong expectation?
>
> It is the fate induced by explicit security checks.
> It will get much worse when the Zope 3 security comes into
> Zope 2 land: then even trusted code will have to deal with
> security proxied objects.
>
>
> We currently work around the problem that trusted code
> cannot have proxy roles with the following class:
>
> class ProxyContext:
>   def __init__(self, proxy_roles):
> self._proxy_roles = tuple(proxy_roles)
>
>   def getOwner(self): return None
>   getWrappedOwner = getOwner
>
> This class emulates an object with proxy roles and can be pushed
> onto the "SecurityManager"s "context" stack like so:
>
> sm = getSecurityManager()
> context = ProxyContext(proxy_roles)
> sm.addContext(context)
> try:
> # do something with "proxy_roles"
> ...
> finally: sm.removeContext(context)
>
>
> Note, that I had to fix (in a local copy) CMF's "_checkPermission"
> for this to work:
>
>It had decided to emulate Zope's proxy role checking only
>approximately -- incorrectly for a "None" owner.
>
> My fix looks like this:
>
> security.declarePrivate('_checkPermission')
> def _checkPermission(permission, obj):
> """ Check if the current user has the permission on the given object.
> """
> # this code is ported from ZopeSecurityPolicy.checkPermission
> roles = rolesForPermissionOn(permission, obj)
> if isinstance(roles, basestring):
> roles = [roles]
> context = getSecurityManager()._context
>
> # check executable owner and proxy roles
> # this code is ported from ZopeSecurityPolicy.validate
> stack = context.stack
> if stack:
> eo = stack[-1]
> owner = eo.getOwner()
> if owner is not None:
> if not owner.allowed(obj, roles):
> return 0
> # DM 2005-09-07: no reason to do it differently from Zope
> #   It accepts "proxy_roles" even for a None owner
> ##proxy_roles = getattr(eo, '_proxy_roles', None)
> ##if proxy_roles:
> ##if obj is not aq_base(obj):
> ##if not owner._check_context(obj):
> ##return 0
> ##for r in proxy_roles:
> ##if r in roles:
> ## return 1
> ##return 0
> proxy_roles = getattr(eo, '_proxy_roles', None)
> if proxy_roles:
> if obj is not aq_base(obj):
> # DM 2005-09-07: do it as Zope does
> #if not owner._check_context(obj):
> if owner is not None and not owner._check_context(obj):
> return 0
> for r in proxy_roles:
> if r in roles:
>  return 1
> return 0
>
> return context.user.allowed(obj, roles)
>
>
> If you are interested in using this approach, you
> should probably file another CMF bug report about the
> wrong handling of proxy roles in "_checkPermission".
> I explicitely allow you to attach the fix given above.
>
>
> --
> Dieter
>
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: External Methods, Proxy Roles, and Executable Security

2005-11-18 Thread George Lee
p.s. This is in the context of a external method in a workflow scripts
folder, if  that helps.

Peace,
George



On 11/19/05, George Lee <[EMAIL PROTECTED]> wrote:
> In CMFCore 1.5.4:
>
> If a low-security-clearance user calls an external method that pastes
> an object from a PortalFolder, he gets an error because the following
> line in CMFCore.PortalFolder fails:
>
> if not sm.checkPermission(DeleteObjects, parent):
>raise AccessControl_Unauthorized
>
> This is even the case if "sm.checkPermission" is changed to
> "_checkPermission", which takes into account proxy roles. The external
> method does not allow proxy roles attached, so I can't just add a
> "Manager" proxy role.
>
> Because I called the pasting in an external method, I expected it to
> go through without security problems! Is this a right expectation /
> and a bug, or a wrong expectation?
>
> Peace,
> George
>
>
>
>
>
>
>
> On 11/18/05, George Lee <[EMAIL PROTECTED]> wrote:
> > I forget if I submitted a collector issue about this before, but I
> > didn't see it. I just posted one at
> > <http://www.zope.org/Collectors/CMF/396>:
> >
> > Title: PortalFolder.py _verifyObjectPaste ignores executable security
> >
> > Version info: CMF 1.5.4 but also in trunk
> >
> > _verifyObjectPaste calls "sm.checkPermission(permission_name,self)"
> > rather than "_checkPermission(permission_name,self)"
> >
> > This makes it ignore executable security. So, if _verifyObjectPaste is
> > in an external method or in a script with sufficient proxy roles, it
> > raises an Unauthorized error for users when the external method /
> > proxy role security should suffice.
> >
> >
> >
> > On 9/9/05, Dieter Maurer <[EMAIL PROTECTED]> wrote:
> > > George Lee wrote at 2005-9-8 23:57 -0400:
> > > > ...
> > > >Is it okay to just replace sm.checkPermission with _checkPermission
> > > >from CMFCore.utils or is that not okay?
> > >
> > > Yes. But, please file a bug report as well.
> > >
> > > >Also Dieter I noticed that Alan Runyan and you briefly discussed this
> > > >issue back in 2002:
> > > >http://mail.zope.org/pipermail/zope-cmf/2002-September/015350.html
> > >
> > > Any internal use should always take executable security (i.e.
> > > executable ownership and proxy roles) into account.
> > > Not doing so is a but, as things expected to be possible are not
> > > and (maybe even worse) things expected to be impossible may
> > > be possible.
> > >
> > > There may be a need for application code to check the permissions
> > > of the user with proxy roles not taken into account.
> > >
> > >   E.g. a script that must use a "Manager" roles to do one
> > >   thing but does not want to do another unless the current
> > >   user has specific permissions.
> > >
> > > For this case, there also should be a method checking
> > > permissions with proxy roles not taken into account.
> > >
> > > --
> > > Dieter
> > >
> >
>
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] External Methods, Proxy Roles, and Executable Security

2005-11-18 Thread George Lee
In CMFCore 1.5.4:

If a low-security-clearance user calls an external method that pastes
an object from a PortalFolder, he gets an error because the following
line in CMFCore.PortalFolder fails:

if not sm.checkPermission(DeleteObjects, parent):
   raise AccessControl_Unauthorized

This is even the case if "sm.checkPermission" is changed to
"_checkPermission", which takes into account proxy roles. The external
method does not allow proxy roles attached, so I can't just add a
"Manager" proxy role.

Because I called the pasting in an external method, I expected it to
go through without security problems! Is this a right expectation /
and a bug, or a wrong expectation?

Peace,
George







On 11/18/05, George Lee <[EMAIL PROTECTED]> wrote:
> I forget if I submitted a collector issue about this before, but I
> didn't see it. I just posted one at
> <http://www.zope.org/Collectors/CMF/396>:
>
> Title: PortalFolder.py _verifyObjectPaste ignores executable security
>
> Version info: CMF 1.5.4 but also in trunk
>
> _verifyObjectPaste calls "sm.checkPermission(permission_name,self)"
> rather than "_checkPermission(permission_name,self)"
>
> This makes it ignore executable security. So, if _verifyObjectPaste is
> in an external method or in a script with sufficient proxy roles, it
> raises an Unauthorized error for users when the external method /
> proxy role security should suffice.
>
>
>
> On 9/9/05, Dieter Maurer <[EMAIL PROTECTED]> wrote:
> > George Lee wrote at 2005-9-8 23:57 -0400:
> > > ...
> > >Is it okay to just replace sm.checkPermission with _checkPermission
> > >from CMFCore.utils or is that not okay?
> >
> > Yes. But, please file a bug report as well.
> >
> > >Also Dieter I noticed that Alan Runyan and you briefly discussed this
> > >issue back in 2002:
> > >http://mail.zope.org/pipermail/zope-cmf/2002-September/015350.html
> >
> > Any internal use should always take executable security (i.e.
> > executable ownership and proxy roles) into account.
> > Not doing so is a but, as things expected to be possible are not
> > and (maybe even worse) things expected to be impossible may
> > be possible.
> >
> > There may be a need for application code to check the permissions
> > of the user with proxy roles not taken into account.
> >
> >   E.g. a script that must use a "Manager" roles to do one
> >   thing but does not want to do another unless the current
> >   user has specific permissions.
> >
> > For this case, there also should be a method checking
> > permissions with proxy roles not taken into account.
> >
> > --
> > Dieter
> >
>
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Reprise -- Manager Proxy Role ineffective for deleting/moving objects

2005-11-18 Thread George Lee
I forget if I submitted a collector issue about this before, but I
didn't see it. I just posted one at
<http://www.zope.org/Collectors/CMF/396>:

Title: PortalFolder.py _verifyObjectPaste ignores executable security

Version info: CMF 1.5.4 but also in trunk

_verifyObjectPaste calls "sm.checkPermission(permission_name,self)"
rather than "_checkPermission(permission_name,self)"

This makes it ignore executable security. So, if _verifyObjectPaste is
in an external method or in a script with sufficient proxy roles, it
raises an Unauthorized error for users when the external method /
proxy role security should suffice.



On 9/9/05, Dieter Maurer <[EMAIL PROTECTED]> wrote:
> George Lee wrote at 2005-9-8 23:57 -0400:
> > ...
> >Is it okay to just replace sm.checkPermission with _checkPermission
> >from CMFCore.utils or is that not okay?
>
> Yes. But, please file a bug report as well.
>
> >Also Dieter I noticed that Alan Runyan and you briefly discussed this
> >issue back in 2002:
> >http://mail.zope.org/pipermail/zope-cmf/2002-September/015350.html
>
> Any internal use should always take executable security (i.e.
> executable ownership and proxy roles) into account.
> Not doing so is a but, as things expected to be possible are not
> and (maybe even worse) things expected to be impossible may
> be possible.
>
> There may be a need for application code to check the permissions
> of the user with proxy roles not taken into account.
>
>   E.g. a script that must use a "Manager" roles to do one
>   thing but does not want to do another unless the current
>   user has specific permissions.
>
> For this case, there also should be a method checking
> permissions with proxy roles not taken into account.
>
> --
> Dieter
>
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: VIRTUAL_URL Failure

2005-11-09 Thread George Lee
> I fear you fight a CookieCrumbler bug.

Vicious monsters, indeed.

Thanks for the REQUEST['URL'] tip. It's a pretty good workaround for
now, although not exactly right. If I am going to an object

http://here.org/object

with default page or default method "default", then REQUEST['URL'] equals

http://here.org/object/default

instead of

http://here.org/object

This works for purposes of redirecting after login but isn't exactly
what should happen. From what I recall browsing a few ACTUAL_URL, etc.
threads, this is one reason there's a difference between the few
different URL variables.

Also, I opened up a collector issue at
  http://www.zope.org/Collectors/CMF/393

Peace,
George


>
> The most natural "REQUEST['URL']" will give the correct value
> (as it gives what the primary HHTP cleint sees).
>
> --
> Dieter
>
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: VIRTUAL_URL Failure

2005-11-09 Thread George Lee
> The correct thing to use in a recent Zope is REQUEST['ACTUAL_URL'].
>
> Florent


This gives something like http://ip:port/path/to/subdomain though
rather than http://subdomain.mydomain.org ... what if anything gives
the latter?


Peace,
George
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] VIRTUAL_URL Failure

2005-11-09 Thread George Lee
>   (2) Does anyone know how to debug VirtualHostMonster or other Python
> libraries while running a Zope instance (it lives in Python not in
> Zope, so I don't know if I change the code there if those changes will
> actually get executed)?

Oh wait it is in a Zope product, scratch that.


Peace,
George
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] VIRTUAL_URL Failure

2005-11-09 Thread George Lee
Two main questions:
  (1) Does anybody *have* good documentation on VIRTUAL_URL and how it
interacts with CookieCrumbler and VirtualHostMonster?
  (2) Does anyone know how to debug VirtualHostMonster or other Python
libraries while running a Zope instance (it lives in Python not in
Zope, so I don't know if I change the code there if those changes will
actually get executed)?



For people who care to read more about what I think is going on:

> Well, where is VIRTUAL_URL documented? Why doesn't Plohn do something
> sane if it's not there?

It's not Plone's issue from what I can tell. CookieCrumbler, which
lives in CMF, does do something sane if VIRTUAL_URL is not there -- it
tries to create a substitute URL.

VIRTUAL_URL is set by the VirtualHostMonster. Does anyone know how to
debug it? Because it is in the python directories used to build Zope,
not in a Zope product which I know how to debug. (Is there a way to
restart python to register changes in VirtualHostMonster.py)?

Here is what I can tell of what is going on:

(1) VIRTUAL_URL is supposed to return the actual URL when there is a
Virtual Hosting Monster, for instance http://subdomain.mydomain.org
instead of http://ip:port/path/to/subdomain/object or
http://mydomain.org/path/to/subdomain/object.

(2) There's an Apache rewrite rule set to transform URL requests like
http://subdomain.org to
http://ip:port/VirtualHostBase/http/subdomain.mydomain.org before they
get sent into Zope.

(3) When VirtualHostMonster receives a request like
http://ip:port/VirtualHostBase/http/subdomain.mydomain.org, it is
supposed to return the currect object at
http://ip:port/path/to/subdomain/object and set a variable VIRTUAL_URL
http://subdomain.mydomain.org in the REQUEST variable.

(4) When navigating to an authenticated-only page, CMFCore's
CookieCrumbler sets a "came_from" variable to remember where to go. To
set the "came_from" variable, it first looks for VIRTUAL_URL. If it
doesn't find it, it uses another method to set "came_from" -- but this
returns an URL, and one that does not work.

(5) During login in Plone to a authenticated-only page, it uses
CMFCore's CookieCrumbler came_from variable.





>
> > I'm wondering if CookieCrumbler is supposed
> > to set VIRTUAL_URL given that there's a VHM installed and doesn't?
>
> It's probably some code in the publisher or vhm. Maybe it's something
> that didn't get merged from a branch or the trunk.
>
> Your best bet is to come up with minimal (ie: no plone, no cookie
> crumbler, etc) way to reproduce this and file a bug report in the collector.
>
> Oh, and grab yourself a copy of grep and see where this should be
> defined ;-)
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python Consulting
> - http://www.simplistix.co.uk
>
>
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] VIRTUAL_URL Failure

2005-11-08 Thread George Lee
Zope 2.8.1

In Plone 2.1.1, when I try to access a page Anonymous does not have
permission to see, it redirects to a login. While doing so, it sets a
came_from variable with the URL I'm trying to access. It sets an ugly

http://my.domain.org/VirtualHostBase/http/my.domain.org:80/contentPages

which does not work. Plone folks suspected this was a Zope problem.

When Plone sets the came_from, it draws on the REQUEST variable. It
first looks to see if there is a VIRTUAL_URL in the REQUEST variable,
but it doesn't find one. I'm wondering if CookieCrumbler is supposed
to set VIRTUAL_URL given that there's a VHM installed and doesn't?

Peace,
George



Peace,
George



On 11/8/05, Chris Withers <[EMAIL PROTECTED]> wrote:
> George Lee wrote:
> > On my Plone site, in CookieCrumbler.py, VIRTUAL_URL is not found in
> > the request variable even though I have a Virtual Host Monster. This
> > means that when logging in, the "came_from" URL that my site directs
> > to becomes something ugly like
>
> What version of Zope are you using?
>
> Why do you think VIRTUAL_URL should be there?
>
> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python Consulting
> - http://www.simplistix.co.uk
>
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] VIRTUAL_URL Failure

2005-11-04 Thread George Lee
Hi,

On my Plone site, in CookieCrumbler.py, VIRTUAL_URL is not found in
the request variable even though I have a Virtual Host Monster. This
means that when logging in, the "came_from" URL that my site directs
to becomes something ugly like

http://my.domain.org/VirtualHostBase/http/my.domain.org:80/contentPages

This doesn't seem to be an Apache rewriting issue.

Should VIRTUAL_URL be found in the request variable and giving the
right URL (http://my.domain.org/contentPages), and why isn't it
showing up?

Peace,
George
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Zope restart fails

2005-10-03 Thread George Donnelly

John Poltorak wrote:

running 'sh zopectl start' appears to work but then Zope quickly falls 
over.



try ./runzope and tell us what happens.

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


[Zope] Re: MemoryError that brings my zope to its knees

2005-09-13 Thread George Donnelly


This problem will happen and there will still be 1GB of free RAM and it 
hasn't touched the swap at all.  We are running FreeBSD 4.10 on this box.


the kernel limits the amount of ram a process can bind by default.


try the following

put this in /boot/loader.conf


kern.maxdsiz="1610612736"
kern.dfldsiz="1610612736"
kerm.maxssiz="1610612736"

put the following into your kernel conf file, rebuild your kernel and 
reboot:



options MAXDSIZ="(768*1024*1024)"
options MAXSSIZ="(256*1024*1024)"
options DFLDSIZ="(768*1024*1024)"


the values are examples only, you will need to play with them to find 
the right ones. keep in mind that the wrong ones, e if you put them too 
close to the amount of physical ram in the box could cause the box not 
to boot.


hth

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


[Zope] Re: Zope Foundation Update

2005-07-21 Thread George Donnelly

Hadar Pedhazur wrote:
"George Donnelly" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]



Making either side into the bad guy is not only innacurate but also
inappropriate and is not conducive to building a community around the
software we all love and are grateful to ZC and non-ZC related
programmers alike for, Zope.



Please don't say that things are "innacurate" when you
aren't involved, and have already repeated a number of
"innacuracies" yourself, which were readily available for
you to check before you repeated them...


Thankfully i'm not directly involved in these pointless  internecine
battles between ZC and one of its founders, but I am involved in the zope
community and ZC brought this issue into the community so i am involved
as is everyone else here. You don't get to make the issue public and
then tell people they aren't involved.

According to rob page's post of yesterday, Zope registered the word
"Zope" while ZEA registered the Zope logo. So when i ask why didn't ZC
register the marks earlier, i am clearly not repeating an innaccuracy,
unless you are saying that rob page's post to zope announce was innacurate.









___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


[Zope] Re: Zope Foundation Update

2005-07-20 Thread George Donnelly

Hadar Pedhazur wrote:

ZC says: the marks were stolen
ZEA seems to be saying: the marks were registered defensively.

My read on this is that there is a serious communication problem going
on here between the lines. Why doesn't Paul come out and state what the
ZEA position is? Why are ZC's words so angry?

ZC saying the marks were stolen seems a little over the top. What if ZEA
registered them defensively? if that's possible then ZEA should be given
then  benefit of the doubt and not be called a thief. If there was a
need to register them to protect "zope", then why didn't ZC do it?

Everybody needs to calm down, stop insulting each other and stop
broadcasting this problem to the whole world on zope-announce (for
example). Its making us all look  childish.

Making either side into the bad guy is not only innacurate but also
inappropriate and is not conducive to building a community around the
software we all love and are grateful to ZC and non-ZC related
programmers alike for, Zope.

<-->
george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting"
Complete Zope Hosting ~ Managed Servers ~ Plone Hosting Solutions
Y/AIM: zettainet ~ Jabber: [EMAIL PROTECTED] ~ Sales: (866) 408-5395



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


Re: [Zope] About login dtml

2005-07-13 Thread George Tesseris

Allen Huang wrote:

What do I need to do inorder for me to use cookies with login dtml or 
python script??

can anyone some me??

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


Take a look at Cookie User Folder product.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


[Zope] Import problem

2005-06-30 Thread George Tesseris




When I try to import a specific .zexp the following error is raised:

Error Type: AttributeError
Error Value:
('__new__', , (,))

Help please... It's crucial...

George



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


[Zope] Zope - WinXP pro x64

2005-06-06 Thread George Tesseris
R there any known compatibility issues regarding Zope(2.7.6) on Windows 
XP Pro x64?


Thanks,
George
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

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


RE: [Zope] Industry customer lists

2001-01-04 Thread George Milliken




farm9 
is a California corporation whose mission is to provide managed security 
services, software and training to protect critical end-user computing 
infrastructure.

farm9 
is a pioneer in the field of remote Internet security vulnerability detection, 
analysis and response.  farm9 
utilizes a subscription based (managed service provider) business model to 
provide state-of-the-art preventative security solutions to businesses and 
governments located throughout the world.

Our 
security development team constantly updates our products detection 
capabilities.  Since our solutions 
are delivered remotely, via the Internet, customers receive these benefits 
instantly, without need to install software or upgrade 
systems.

farm9 
offers the following IT security products & services:



Available Now


  Thresher™ 
   
  Managed Vulnerability Scanning service
  Baler 
  eFTP™   
  Replace FTP with encrypted browser based eFTP
  Harvester™ 
  Managed IDS/Log Consolidation & Alerting
  Hacking 
  101™ Training 
  Security Training for System Administrators
  IVA    
  Penetration Testing & Assessment
farm9 
uses, supports, and produces Open Source software products in its service 
offerings.  This allows partners, 
affiliates, and customers to leverage the Open Source community in their 
commercial environments.  At farm9 
we believe the best security software is open security 
software.
 Our 
San Francisco data center contains highly advanced systems, which remotely scan 
customer’s sites.  Maintaining 
continuous 24x7 vigilance in the fight against Internet-based intruders.  Our solutions protect information 
systems that are exposed to the Internet.  
We protect all systems with continuous Internet connection such as 
co-located servers, DSL, and cable modem connections.
 
Regards,George Milliken, CEOfarm9.com, 
Inc.--[EMAIL PROTECTED]   24x7 Intrusion Prevention & 
Incident Responsehttp://www.farm9.com  24x7 Log 
Consolidation & Managed IDSSOC : 415-863-8035    cell: 
510-913-8669    efax: 520-222-8546    
==    See us 
at SANS New Orleans Jan. 28 - Feb. 2, 2001    
== 
 
 

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Luis BotelhoSent: 
  Wednesday, January 03, 2001 4:00 AMTo: 
  [EMAIL PROTECTED]Subject: [Zope] Industry customer 
  lists
  
  This email  is to request information on your company for our on 
  line directory and introduce you to our company Repharm. 
  Best Regards, Dianne Edwards Tel:  
  905-721-8456 Fax:  
  905-721-1471 email:  
  [EMAIL PROTECTED] 
  Repharm has the following installed customer databases and services 
  available to increase your sales. 
  ERP: 
  BAAN JD 
  Edwards Lawson Marcam Oracle Applications 
  Peoplesoft QAD 
  (Worldwide) SAP SSA Symix 
  CRM: 
  Clarify Pivotal Siebel 
  SUPPLY CHAIN: 
  I2 Manugistics 
  Synquest 
  HARDWARE: 
  AS400 OS390 
  HP SUN 
  DESKTOP 
  APPLICATIONS: Corel 
  Lotus Notes Microsoft 
  COMMUNICATIONS: ASP’s CLECS ISP’s 
  E-COMMERCE: 
  .com Directory Software 
  Directory Consultant Directory 
  CFO List CIO 
  List 
  INDUSTRY SPECIFIC 
  LISTS: Agriculture, Forestry and 
  Fishing Communications Construction Finance, Insurance and 
  Real Estate Manufacturing 
  Mining Public 
  Administration Retail Trade 
  Services Transportation Utilities 
  Wholesale Trade 
  FRONT OFFICE 
  SERVICES: We offer the following 
  Front Office Services: 
  
Fax Campaigns 
Telemarketing 
Direct Mail Customer 
Satisfaction 
Surveys


[Zope] Big Work Ahead - any advise ???

2000-11-18 Thread George Osvald

Hello Everyone,

I have been playing with ZOPE for some time and I absolutely love it. I have
my own site running without a problem for about six months. Recently I was
able to demonstrate ZOPE to a "VERY" major player in entertainment industry
(music and video). I sold the idea to them and in about one month I am
supposed to start to redesign a major web site(and then may be another one).
It contains about 2000 pages at the moment. Is there anything I should be
aware of when designing a site of such magnitude in ZOPE? (streaming video
and music is not going to be served from the ZOPE site)

George Osvald


___
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] (no subject)

2000-11-18 Thread George Osvald

Hello Everyone,

I have been playing with ZOPE for some time and I absolutely love it. I have
my own site running without a problem for about six months. Recently I was
able to demonstrate ZOPE to a "VERY" major player in entertainment industry
(music and video). I sold the idea to them and in about one month I am
supposed to start to redesign a major web site(and then may be another one).
It contains about 2000 pages at the moment. Is there anything I should be
aware of when designing a site of such magnitude in ZOPE? (streaming video
and music is not going to be served from the ZOPE site)

George Osvald


___
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] Z2.log question

2000-10-19 Thread George Osvald

Can I safely delete Z2.log file and replace it with an empty one? It is
getting quite big and it seems to me like a waste of space. I downloaded the
existing version for reference.

Regards,

George



___
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] ZSQL question

2000-10-17 Thread George Osvald

I have a table with lots of data in my Gadfly database. I would like to add
a couple of new columns to that table. Is it at all possible to add columns
to existing table or do I have to create a new table all together?

Regards,

George


___
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] working crontab restart script on FreeBsd

2000-10-01 Thread George Osvald

I was trying to do this for a little while so in case anyone's interested,
here it is. Most of the code was kindly sent to me by other people so do not
blame me for the mistakes. This script(auto) checks ZOPE every 15'th minute
and if it does not run, it will restart it. It has been working without a
problem on FreeBSD 4.0 after I patched ZOPE's pidfile for LF's. (without
that little operation it returns an error message and restarts ZOPE every
time without checking it)

I am running this from crontab:

SHELL=/bin/sh
0,15,30,45 * * * * /home/user/auto

And this script(auto) is sitting in my user directory:

#!/bin/sh

ZOPEDIR="/home/user/zope"
INFOMAIL="[EMAIL PROTECTED]"

STARTFILE="$ZOPEDIR/start"
STOPFILE="$ZOPEDIR/stop"
PIDFILE="$ZOPEDIR/var/Z2.pid"
PID1ACTIVE=0
PID2ACTIVE=0
if [ -x $STARTFILE ]; then
  if [ -r $PIDFILE ]; then
PID1=`cut -d" " -f1 $PIDFILE`
PID2=`cut -d" " -f2 $PIDFILE`
if
kill -0 $PID1 2>/dev/null
then
  PID1ACTIVE=1
fi
if
kill -0 $PID2 2>/dev/null
then
  PID2ACTIVE=1
fi
  fi
  if [ $PID1ACTIVE -eq 0 -o $PID2ACTIVE -eq 0 ]; then
$STOPFILE >/dev/null 2>&1
    sleep 10
$STARTFILE
date | mail -s"Zope restarted" $INFOMAIL >/dev/null 2>&1
  fi
fi

Regards,

George



___
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] using crontab to restart ZOPE - again

2000-09-23 Thread George Osvald

Some time ago I asked for help when setting up crontab to restart ZOPE. I
got a few answers and scripts. This one was sent to me by Adam Karpierz. It
works fine on my RED HAT 6.2 box but I can't get it working on FreeBSD 4.0.
On Linux it doesn't do anything if ZOPE is running. It only restarts when
ZOPE stops working. On FreeBSD it stops and then restarts ZOPE every time. I
wander if anyone knows what should be changed for this script to run on
FreeBSD. Any help would be appreciated.



#! /bin/sh

ZOPEDIR="/home/virtuals/user/zope"
INFOMAIL="[EMAIL PROTECTED]"

STARTFILE="$ZOPEDIR/start"
STOPFILE="$ZOPEDIR/stop"
PIDFILE="$ZOPEDIR/var/Z2.pid"
PID1ACTIVE=0
PID2ACTIVE=0
if [ -x $STARTFILE ]; then
  if [ -r $PIDFILE ]; then
PID1=`cut -d" " -f1 $PIDFILE`
PID2=`cut -d" " -f2 $PIDFILE`
if
ps -p $PID1 >/dev/null 2>&1
then
  PID1ACTIVE=1
fi
if
ps -p $PID2 >/dev/null 2>&1
then
  PID2ACTIVE=1
fi
  fi
  if [ $PID1ACTIVE -eq 0 -o $PID2ACTIVE -eq 0 ]; then
$STOPFILE >/dev/null 2>&1
sleep 10
$STARTFILE
date | mail -s"Zope restarted" $INFOMAIL >/dev/null 2>&1
  fi
fi


---

Regards,

George


 AUTO


[Zope] ZOPE - Size reduction ???

2000-09-15 Thread George

I recently transformed my web site into a zope site. It's fantastic no
question about that but I am a bit warried about the size of the web
site. I already had to ask for user quota increase and it looks like
I'll have to do it again soon. I got rid of the tutorial, products I did
not need, the unnecessary doc files I deleted the quick start directory
and I am flushing and packing the database often. What else can I do to
decrease the size of ZOPE?

Regards,
George


___
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] Folder and SQL security

2000-09-03 Thread George

Security in ZOPE is very puzzling. If I have certain rules set for the
root folder, can I set something different for the sub folders? Any
changes seem to have no effect at all. I am especially wandering about
setting for anonymous user. I'd like to give them only 'viewing'
privilege but that does not work. The site is not functional at all and
asks for the password even for the viewing. Then I enable 'access the
content' and the site works as long as I do not try to use sql. When I
how ever enable 'use sql methods' permission they can access my
database, delete and add entries to it. What do I have to do to allow
anonymous viewers to just view the site (keep in mind that I am using a
couple of zsql methods for embedding of data in my html) I also want to
have one of the sub folders not accessible to any one but me.
Can you help anyone?

Regards,
George


___
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] SQL question...I think

2000-08-29 Thread George

I know nothing about sql so forgive me this idiotic question:-) All I
know so far I had learnt from ZOPE tutorials and HOW-TO's. Here is the
question:
I have a database connection working. I created a couple of tables and
filled them up with stuff. I know how to insert data in to the table,
search and such. I can not find any info on how to embed the data in my
dtml-html code to show it to the world. I know how to create a form for
the visitors to search for the stuff. What I need is simply include some
data in my documents without any interaction.
If I have for instance a table that contains a columns: product_id,
price, weight. How do I display the values one by one? (not the whole
table) I have some data in the table that I do not want to display on
every page. Can I choose just one row and column and display just that
data in that single cell? Say only the price of the product number
1?

Regards,
George


___
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] Using crontab instead of rc.d

2000-08-23 Thread George Osvald

Hello everyone!

My ISP where I have my web page, is running freeBSD 4.0. I do not know a lot
about it. I know how to use crontab to start ZOPE at certain time how ever
how do I use crontab to check on the script that is already running?
Starting ZOPE again when it's running produces an error message and I do not
know if that was a healthy solution.

to start it I would be using something like:

5   *   *   *   *   root./start

This would start the script every five minutes. Now how do I check if the
script is running after it's been started and if it wasn't to restart it
again. Also I was thinking to run ZOPE in DEBUG mode. That way it stays
attached to the terminal (crontab I guess).
I know about z2.pid. Nevertheless I find ZOPE down quite often every time
they do something at the ISP. I asked them what to do and they told me to
use crontab to check the script and restart it. For some reason they don't
want me to use rc.d
If I could guarantee to remove the z2.pid every time ZOPE goes down, I could
apparently include something like this:

if [ -x /home/virtuals/account/zope/z2.pid ]
then
// exit(0)
fi

5   *   *   *   *   root./start

to check if the file is present and if not to run the script. That can't be
done when ZOPE exits abnormally though.

Is this setup at all possible?

Regards,

George Osvald




___
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] (no subject)

2000-08-22 Thread George Osvald

Hello everyone!

My ISP where I have my web page, is running freeBSD 4.0. I do not know a lot
about it. I know how to use crontab to start ZOPE at certain time how ever
how do I use crontab to check on the script that is already running?
Starting ZOPE again when it's running produces an error message and I do not
know if that was a healthy solution.

to start it I would be using something like:

5   *   *   *   *   root./start

This would start the script every five minutes. Now how do I check if the
script is running after it's been started and if it wasn't to restart it
again. Can anyone help?

Regards,

George Osvald

Ps: I know about z2.pid. Neverthless I find ZOPE down quite often everytime
they do something at the ISP. I asked them what to do and they told me to
use crontab to check the script and restart it.




___
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] instead of SiteAccess

2000-08-22 Thread George Osvald

I am using ProxyPass configuration with Apache and SiteAccess. My web-site
is located on ISP's server in my user directory. Because I can't stay on
line for too long during a day(I have a phone on the same line) I tend to do
all editing off line and then at night upload the lot. The subdirectory of
my web site is 'okstudio'. Because I am using SiteAccess(with 'base' in the
folder 'okstudio'), none of the relative links worked on my local machine. I
like my links nice and short that do not include '/okstudio/'. It looks too
long in the address window of my browser. Before each upload to the server I
had to change the links.  I was trying to use SiteAccess on my home machine
but could not get it working. It would not work for http://localhost or
http://localhost:8080 ..and so and so. I tried several times without a
success. Then I decided to use a different approach. I created a property
'base' in the root folder of my site. The string is: http://localhost:8080/okstudio/">. Then I put  in my
standard_html_header and all the alternative headers I use (JavaScript and
stuff). All I have to do now is change the 'base' property to http://www.myserver.com.au/"> before each upload and all the links can
stay the same. I would not even have to use SiteAccess at all if I had a
little redirection method in my root directory. It is all OK but I would
like to know if there is a way how to make SiteAccess working on the local
machine so I can have almost identical setup locally. Can you help anyone?

I am also serving local files located in my original public_html directory
from ZOPE going directly to my user directory. The links look like this:
http://123.45.678.9/~username . Would that be considered a security risk
exposing my user directory like that?
George Osvald


___
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] Dots versus underscore in DTML

2000-08-18 Thread George Osvald

I know dots  in file names are important when submitting the pages to the
search engines. When I use them however, I'll loose the view tab(folder)
when trying to view say index.html and I have to click on the file and then
view it. If the file was named index_html I could just click on the view tab
in the folder to view it. Is it possible to have dots in my methods and
still have the view tabs on my folders?

Anyone?

George


___
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] PROBLEM(100) ZServer Computing default hostname

2000-08-15 Thread George Osvald

I'm getting this when starting ZOPE:

2000-08-15T17:35:20 PROBLEM(100) ZServer Computing default hostname

ZOPE is running OK though. Is there a problem I do not see?

George


___
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] ProxyPass - where ???

2000-08-15 Thread George Osvald

I'm having trouble configuring ProxyPass on my ISP's server. I tried to
follow the instructions in the appropriate HOW-TO's without a success. I
think they all assume that the user would have root access. I don't. I have
built ZOPE in my user directory.
Anyway ProxyPass takes two arguments, a virtual path and a URL. In my case
is the virtual path a local path to my user directory or zope install
directory ?

So if:
user directory is located @ /home/virtuals/myaccount/
and zope installation @ /home/virtuals/myaccount/zope
my web site is @ www.mydomaine.com.au
the server is demon.server.com.au
and sub directory in ZOPE with my web site is 'okstudio' (I've used
SiteAccess for this)
then is this correct?


ServerName www.mydomaine.com.au
ProxyPass /home/virtuals/myaccount/ http://demon.server.com.au:8080/okstudio
ProxyPassReverse /home/virtuals/myaccount/
http://demon.server.com.au:8080/okstudio


or maybe:


ServerName www.mydomaine.com.au
ProxyPass /home/virtuals/myaccount/zope
http://demon.server.com.au:8080/okstudio
ProxyPassReverse /home/virtuals/myaccount/zope
http://demon.server.com.au:8080/okstudio


originally when using stuff copied from the HOW-TO I used:


ServerName www.mydomaine.com.au
ProxyPass / http://demon.server.com.au:8080/okstudio
ProxyPassReverse / http://demon.server.com.au:8080/okstudio


The result was this error message in my browser:

>Proxy Error
>The proxy server received an invalid response from an upstream server.
>The proxy server could not handle the request GET /.

>Reason: Could not connect to remote machine: Connection refused



Regards,

George
OK Studio
[EMAIL PROTECTED]

 Notebook.jpg


[Zope] Zope - long running process

2000-08-11 Thread George

Could someone please explain how to make sure ZOPE does not stop working
and if it does then it restarts again? My platform is FreeBSD 4.0
-stable. Do I use CRON ? Do I turn the debug option off to detach ZOPE
from the terminal it was started from?

Regards,
George
[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] Install problems on FreeBSD

2000-08-09 Thread George Osvald

Please help!

Install problems on FreeBSD

I've installed ZOPE several times before on different systems
(win98, NT, Linux) for testing purposes. Always logged in as 'root'
I never encountered any problems. Recently I finally decided to upgrade
my web-site to a ZOPE-Site and that's when the trouble started.
Without the root privilege I had experienced every single problem
possible. But finally I managed to build both python and ZOPE. The OS
is FreeBSD 4.0-stable and I used both the binary and source package. I
how ever can not start neither of them. All I get is a bunch of error
messages. I also would like to use ProxyPass and ProxyPassReverse
configuration. Do I use w_pcgi.py or wo_pcgi.py to build ZOPE. I think
since I will not be using pcgi it should be the latter. I am including the
junk I got after trying to start ZOPE. Any help would be greatly
appreciated.

Install from source:
demon:~/zope $ ./start
Traceback (innermost last):
  File "/home/virtuals/gosvald/zope/z2.py", line 554, in ?
exec "import "+MODULE in {}
  File "", line 1, in ?
  File "/home/virtuals/gosvald/zope/lib/python/Zope/__init__.py", line 94,
in ?
import ZODB, ZODB.ZApplication, imp
  File "/home/virtuals/gosvald/zope/lib/python/ZODB/__init__.py", line 85,
in ?
import sys, ExtensionClass, TimeStamp, cPersistence, Persistence
ImportError: /home/virtuals/gosvald/zope/lib/python/ExtensionClass.so:
Undefined
 symbol "PyMethod_Type"
demon:/zope $

install from binaries:
demon:~/zope2 $ ./start
'import site' failed; use -v for traceback
Traceback (innermost last):
  File "/home/virtuals/gosvald/zope2/z2.py", line 524, in ?
import ZServer
ImportError: No module named ZServer
demon:/zope $


George Osvald
OK Studio
[EMAIL PROTECTED]
http://www.okstudio.com.au
Ph: (02) 9792 8501
Fax: (02) 9792 8502
Mob: 0411 766 792
PO Box 552
Padstow
NSW 2211
AUSTRALIA


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

2000-08-09 Thread George Osvald

Please help!

Install problems on FreeBSD

I've installed ZOPE several times before on different systems
(win98, NT, Linux) for testing purposes. Always logged in as 'root'
I never encountered any problems. Recently I finally decided to upgrade
my web-site to a ZOPE-Site and that's when the trouble started.
Without the root privilege I had experienced every single problem
possible. But finally I managed to build both python and ZOPE. The OS
is FreeBSD 4.0-stable and I used both the binary and source package. I
how ever can not start neither of them. All I get is a bunch of error
messages. I also would like to use ProxyPass and ProxyPassReverse
configuration. Do I use w_pcgi.py or wo_pcgi.py to build ZOPE. I think
since I will not be using pcgi it should be the latter. I am including the junk I got 
after trying to start ZOPE. Any help would be greatly
appreciated.

Install from source:
demon:~/zope $ ./start
Traceback (innermost last):
  File "/home/virtuals/gosvald/zope/z2.py", line 554, in ?
exec "import "+MODULE in {}
  File "", line 1, in ?
  File "/home/virtuals/gosvald/zope/lib/python/Zope/__init__.py", line 94, in ?
import ZODB, ZODB.ZApplication, imp
  File "/home/virtuals/gosvald/zope/lib/python/ZODB/__init__.py", line 85, in ?
import sys, ExtensionClass, TimeStamp, cPersistence, Persistence
ImportError: /home/virtuals/gosvald/zope/lib/python/ExtensionClass.so: Undefined
 symbol "PyMethod_Type"
demon:/zope $

install from binaries:
demon:~/zope2 $ ./start
'import site' failed; use -v for traceback
Traceback (innermost last):
  File "/home/virtuals/gosvald/zope2/z2.py", line 524, in ?
import ZServer
ImportError: No module named ZServer
demon:/zope $

___
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] (no subject)

2000-08-08 Thread George Osvald



 
Please help!
 
Install problems on FreeBSD
 
I've installed ZOPE several times before on 
different systems(win(win98, NT, Linux) for testing purposes. Always logged 
in as rootI never encountered any problems. Recently I finally decided to 
upgrademy web-site to a ZOPE-Site and that's when the trouble 
started.Without the root privilege I had experienced every single 
problempossible. But finally I managed to build both python and ZOPE. The 
OSis FreeBSD 4.0-stable and I used both the binary and source package. 
Ihow ever can not start neither of them. All I get is a bunch of 
errormessages. I also would like to use ProxyPass and 
ProxyPassReverseconfiguration. Do I use w_pcgi.py or wo_pcgi.py to build 
ZOPE. I thinksince I will not be using pcgi it should be the latter. I am 
including the junk I got after trying to start ZOPE. Any help would be 
greatlyappreciated.
 
Install from source:demon:~/zope $ 
./startTraceback (innermost last):  File 
"/home/virtuals/gosvald/zope/z2.py", line 554, in ?    exec 
"import "+MODULE in {}  File "", line 1, in ?  
File "/home/virtuals/gosvald/zope/lib/python/Zope/__init__.py", line 94, in 
?    import ZODB, ZODB.ZApplication, imp  File 
"/home/virtuals/gosvald/zope/lib/python/ZODB/__init__.py", line 85, in 
?    import sys, ExtensionClass, TimeStamp, cPersistence, 
PersistenceImportError: 
/home/virtuals/gosvald/zope/lib/python/ExtensionClass.so: 
Undefined symbol "PyMethod_Type"demon:/zope $
 
install from binaries:demon:~/zope2 $ 
./start'import site' failed; use -v for tracebackTraceback (innermost 
last):  File "/home/virtuals/gosvald/zope2/z2.py", line 524, in 
?    import ZServerImportError: No module named 
ZServerdemon:/zope $
George Osvald OK Studio [EMAIL PROTECTED] http://www.okstudio.com.au 
Ph: (02) 9792 8501Fax: (02) 9792 8502Mob: 0411 766 792 PO Box 
552Padstow NSW 2211AUSTRALIA 


Re: [Zope] DTML problem

2000-07-25 Thread George Donnelly

this is probably a hack but you could use the id of the document you want to
exclude with an unless statement.  this is what i did when i wanted to
exclude the index_html doc





 
last modified: 



hth

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
Part of becoming a writer is the desire to have everything mean something.
--Louise Erdrich

> But I don't want to show the current "DTML Document" as part
> of the menue.


___
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] ZClass tutorial

2000-07-24 Thread George Donnelly

yeah i know how ya feel. even for little stuff i have to scrounge and beg
for help. :-(

hopefully this will improve when the O'Reilly Zope book comes out.

btw have you checked out the pdf files of all the howto's and tip's? i've
found them to be really helpful

http://www.zope.org/Members/AlexR/

also this list archives is really useful i think. i get a lot of stuff from
here

http://zope.nipltd.com/public/lists/zope-archive.nsf/$$Search?OpenForm

hth

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
He that always gives way to others will end in having no principles of his
own. --Aesop 

> Hi, some thoughts(and frustrations) from a newbie having his "first time"
> with Zope.
> 
> The documentation needs a lot of improvement.

> sigh...i foresee a rocky road ahead for this newbie to master the 'Zen' of
> Zope. Hopefully it's not a long one:(


___
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] zcatalog and squishdot newbie question

2000-07-23 Thread George Donnelly

i'm a bit of a newbie myself so take my advice with a grain of salt, but...

you shouldn't need to create a Catlog and then put your Squishdot site in
it. The main squishdot site *is* a Catalog, or has Catalog-like qualities.
(i think).

if you want to be able to search the Squishdot site *and* other stuff you
should be able to select the Squishdot site as well as whatever other
Catalogs you have when you add a Z Search Interface.

hth

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
The man who follows the crowd will usually get no further than the crowd.
The man who walks alone is likely to find himself in places no one has ever
been. --Alan Ashley-Pitt

> I have created a catalog and added my squishdot site to it.  However,
> when I go to look at the catalog contents there are no squishdot
> articles listed (the suishdot site object is listed though).  When I run
> a search for a keyword that I know is in the squishdot object, I get no
> matches (but do when I search for other non-squishdot keywords).  I
> thought this may have something to do with running squishdot 3.1 so I
> upgraded to 4.1, reindexed and still nothing.  What could be the
> problem?  I heard somone say something about your catalog cataloging
> itself (mine does)- should it do this?  I tried removing it but nothing.


___
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] all DTML Methods of current folder and subfolder

2000-07-21 Thread George Donnelly

sorry to butt-in on this thread :^)

how can i get the contents of sub-folders as well?

i tried ZopeFind but i am just getting errors.

thanks

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
The first precondition of self-esteem is that radiant selfishness of soul
which desires the best in all things. --Ayn Rand


> At 07:21 21.07.2000 +, Wolfgang Klinger wrote:
>> I have a dtml method in a folder which should
>> display all "document_title"s of all
>> "DTML Method"s in the current folder and
>> all sub folders!
>> 
>> (should work as navigation frame)
>> 
>> How can I do that?
>> 
>> I tried
>> 
>> where "Info" is the current folder where the
>> method itself is stored
>> but that didn't work ... :-(
> 
> Try using PARENTS[0] instead of Info if you want to display the current
> folder content. I am using the following (with a few sorting options for
> the dtml-in tag) in a ZClass (inheriting from CatalogAware and Folder) I
> created to render the content of the current folder.
> 
> 
> 
> 


___
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] linuxworld article

2000-07-17 Thread George Donnelly

as a newbie i am kind of glad that there are no slick interfaces. i want to
learn. i dont need to be coddled. :-)

is it important for zope to be "big" like MS and oracle? [lets think about
that for a second; do you really want to say that zope should be like MS or
MS products? yeah MS has some good points, but ...] or high-quality, open,
"home-grown", *real* ...?

i thought oss was supposed to be different ... ? >:-/

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
The longer I live the more beautiful life becomes. --Frank Lloyd Wright

>... However, for new users it could be disappointed.
> The interface does not look slick and does not offer interesting looking
> wizards that invite to click on. I think it should ! The first acquaintance
> with Zope should be a joy ! A new world opening up, a world where everything
> seems to be possible !  ;-)
> Maybe a bit commercial thinking, but hey, thats what made Microsoft and
> Oracle big. Not by delivering but simply by promising... At least Zope
> delivers, so what we need is showing the world it does.


___
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] MetaPublisher DB - was linuxworld article

2000-07-16 Thread George Donnelly

> this version will come with a few other goodies --- but we prefer to keep some
> things a surprise.

might i hope that one of these goodies will be an improvement in the way
metapublisher interacts with zcatalogs?

see my post in june to the mp list below:


i have several MP instances in subfolders and need to present the most
recent mp entries from any/all of the these MP instances on my index_html
page in the zope root.

when i add a Z search interface in the zope root it only offers me the
Catalog in the zope root as a searchable object and does not seem to be
aware of any mp_catalog's.

alternatively i could find all meta entry's to the Catalog in the zope root
but the meta entry meta type does not show up in the selection list. how
could i find the meta entrys without finding all objects? can anybody
recommend an expression? i tried something like meta type==meta entry but
this was a no go -- it returned ALL objects

the only way i could do it is by adding each individual mp entry's id into
the find to catalog mechanism. for a site with any traffic this could be a
major bummer!

then the next problem was that when i used the getpath directive to get a
url for the records returned by the Catalog i got a url like this
mpfolder/mp_entries/9995757.435 which plays all kinds of havoc with my
carefully crafted directory structure ;-|

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
Destiny is not a matter of chance, it is a matter of choice. It is not a
thing to be waited for, it is a thing to be achieved. --William J Bryan



___
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] FW: [Zope] linuxworld article

2000-07-16 Thread George Donnelly

this is a smear and a cowardly one. one small complaint about the default
dtml methods produced when creating a zclass does not an intelligent
criticism make!

zope is not perfect  but he failed to describe any serious problems. imo


Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
The truly and deliberately evil men are a very small minority; it is the
appeaser who unleashes them on mankind; it is the appeaser`s intellectual
abdication that invites them to take over. --Ayn Rand


> http://www.linuxworld.com/linuxworld/lw-2000-07/lw-07-penguin_2.html
> 
> Hmm...what is your opinion on the article above? I'm interested to see the
> author's comparison btwn Enhydra and Zope.
> 
> regards,
> firestar


___
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: Re: [Zope] ZStylesheet

2000-07-16 Thread George Donnelly

h. thats too bad. you should upgrade him to mozilla at least ... :-)

seriously tho i think (havent tried it) that the stylesheets at w3c will get
as muuch mileage out of nn4 as possible ( tho you probably knew this
already)

well hth

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
Government is the people's business and every man, woman  and child becomes
a shareholder with the first penny of tax paid. --Ronald Reagan


> Thanks for the encouragement George. By the way, my director uses Netscape 4
> :-(
> 
> Neil
> 
>> try http://www.w3.org/StyleSheets/Core/
>> 
>> dont give up on css yet! frankly i woudnt even worry about netscape 4.x,


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

2000-07-15 Thread George Donnelly

try http://www.w3.org/StyleSheets/Core/

dont give up on css yet! frankly i woudnt even worry about netscape 4.x,

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
The one who tells the stories rules the world. --Hopi proverb


> Warning: This is a 'get it off my chest' e-mail.
> 
> Well, I am going to give up with CSS. I am sure ZStylesheet is a fine
> product, its just that CSS implementations lets it down.
> 
> I have struggled for ages to get anything more sophisticated than
> font-family* to work on both IE5 and Netscape 4.6 - no chance. It seems
> they have both implemented CSS from a different hymn sheet :-( Basically,
> nothing to do with sizes works the same, and it boils down to Netscape
> ignoring the inheritance model of CSS. table rows and cells are a
> particular mystery.
> 
> If anyone has cracked it and has developed a ZStylesheet which can second
> guess both browsers, please let me know. Until then, I will go back to
> using  or whatever. Shame, but I have more interesting
> things to worry about.
> 
> Regards
> 
> Neil
> 
> *even font-family doesn't work for the BODY selector. Tables in Netscape
> ignore it so you have to use BODY TR TD as the selector.


___
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] RFC: is this the best way to make a referal app and a "jump" navmenu *2nd time*menu *2nd time*

2000-07-04 Thread George Donnelly

Basically i would like people's opinions as to whether i built these things
in the "right" way or not. tia!

>jump menu

*created a selection list and told it to pass a variable (the url of the
selected item) called "url" to a method called "jump" which consists of the
following:



its a little slow but it works :-)

>referral product (as in http://www.recommend-it.com/)

i pass the variables on the first page (where people enter name, email, and
up to 5 of their friends email addresses) to a method called success

here's the problem i think: since i am enabling people to email up to 5
friends, i've got 5 copies of the same email message in the success method
inside the sendmail tags. the last 4 are in if statements.

i know there must be a better way but i really have no idea. any help?

(btw if anybody wants to use these things just email me and ill send you the
terribly simple yet useful code. :-)

tia!

Regards,
G e o r g e D o n n e l l y
[EMAIL PROTECTED]
http://www.LetsJapan.com/
Share Your Experiences, Learn From Others' !


___
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] RFC: is this the best way to make a referal app and a "jump"nav menunav menu

2000-06-30 Thread George Donnelly

Basically i would like people's opinions as to whether i built these things
in the "right" way or not. tia!

>jump menu

*created a selection list and told it to pass a variable (the url of the
selected item) called "url" to a method called "jump" which consists of the
following:



its a little slow but it works :-)

>referral product (as in http://www.recommend-it.com/)

i pass the variables on the first page (where people enter name, email, and
up to 5 of their friends email addresses) to a method called success

here's the problem i think: since i am enabling people to email up to 5
friends, i've got 5 copies of the same email message in the success method
inside the sendmail tags. the last 4 are in if statements.

i know there must be a better way but i really have no idea. any help?

(btw if anybody wants to use these things just email me and ill send you the
terribly simple yet useful code. :-)

tia!

Regards,
G e o r g e D o n n e l l y
[EMAIL PROTECTED]
http://www.LetsJapan.com/
Share Your Experiences, Learn From Others' !


___
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] PCGI Error: (102) failure during connect to ZServer

2000-06-30 Thread George Donnelly

hi there!

altho i used that same howto to get msyelf set up ive decide that it is not
the best way.  im not sure what the problem is in this case but i would rec
running zope off zserver directly on port 8080 instead of that pcgi stuff.
thats what im doing now.

btw did you restart zope after setting up the htaccess? im guessing you did
but i made this mistake more than once.

hth

Regards,
G e o r g e D o n n e l l y
[EMAIL PROTECTED]
http://www.LetsJapan.com/
Share Your Experiences, Learn From Others' !

> This is with Zope-2.2.0b3-src.tgz
> 
> The pcgi wrapper reports ...is unable to connect to the ZServer
> background process via Unix socket .../var/pcgi.soc
> 
> I am trying to install this on a remote host, this error came up
> locally too, though.
> 
> I followed glndspud's howto on 3rdparty host setup. With a 2.1.6
> release I was able to get zope running. However, with this setup I
> was not able to login through manage, the authorization did not work.
> So my reasoning, an upgrade should make this error vanish. Not so,
> until now. ;-(
> 
> Christian


___
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] newbie changingover to zope from html/cgi??

2000-06-17 Thread George Donnelly

you do need zope to be installed on your isp (webhost). not all hosts will
allow it though. you should ask whether they have any policy about
long-running processes.

in order to install you need to download the appropriate version of zope,
ftp it into the appropriate place and then unpack it and there's more.

download zope and then take a good look at the included documentation. it
can be confusing but you'll just have to work thru it. there are also some
how-to's on the zope.org site that can help fill in some of the gaps.

as far as perl goes maybe this will help:
http://www.zope.org/Members/Mamey/PHP

as far as converting your previous site, it will most-likley not be a
one-click thing. it shouldn't be too difficult though. the strcuture and
organization that works well for html/perl stuff is not the optimal one for
zope. in zope you can break stuff down into pieces, like a header footer and
etc and then include them anywhere for example (maybe you are already doing
this with ssi.)

hth


Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
The man who tried his best and failed is superior to the man who never
tried. --Bud Wilkinson

> 
> Hi,
> I am newbie to zope(infact installed it yesterday). Just impressed with
> its capabilities. But there are somethings i cant figure out.
> 
> I want to transfer a whole website containg javascript/html/cgi on
> zope. how do i do it. is it possible.
> 
> Do i need to have zope on the ISP for my zope website to run.
> 
> I only have ftp access on my ISP. Which files should i transfer so that
> the zope application works. btw i couldnot locate the files/database on my
> system about the webiste i am building. where is the database for the
> application kept.
> 
> I donot know python but do know perl, can i add modules to zope in perl.
> 
> Thanks.


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

true. and this newbie searches first before asking. however i have noticed
my questions very often going unanswered. yeah they may be stupid but i only
ask if i cant find it myself.

it only takes a moment for you gods to respond to easy newbie questions and
help point us in the right direction. in other areas where i approach god
status i do it all the time. it falls under the heading of being a good
community member. 

the fact is that the zope documentation sucks bigtime and is not easy to
search. there are lots of ambiguities.

if people really want zope to be successful and reach a wide audience i
encourage you to think about this.

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
It's a funny thing about life; if you refuse to accept anything but the
best, you very often get it. --W. Somerset Maugham

> People are usually annoyed about newbie questions, since they have been
> answered a thousand times, but noone is willing to search the mailing list
> archives. I usually find 70% of the time the answers to my questions there.


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

as a newbie myself i can say that i experienced some considerable
frustration in getting zope up and going and using it. (i still am!) the
documentation and mailing list support is mediocre so far at best,
especially when it comes to newbie questions.

so i can understand where you're coming from.

**BUT** zope kicks ass. so just give it a little time. its worth it.

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
Love does not consist of gazing at each other, but in looking outward
together in the same direction. --Antoine de Saint-Exupery

> On Tue, 13 Jun 2000, Malcolm C. Mallette wrote:
> 
> Zope is the worst excuse of a program I have ever encountered.


___
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] ZCatalog and plurals (wordnet?)

2000-06-08 Thread George Runyan

does ZCatalog support plurals?  zope.org is not, maybe its not running thew
latest n' greatest version of ZCatalog (for good reasons?).  anyway - if
search for 'logo' on zope.org you get nothing, but if you search for 'logos'
you get what I was looking for (to make some .ico files :) does someone have
an idea of the potential to put plurals into ZCatalog?  is it in the future
of ZCatalog.  in the presentation slides this is all that is said (thus
far): 

Cool features (Boolean, synonym/stopwords, field/keyword/text, wildcards)

would plurals fall under the catagory of, 'synonym/stopwords'?  sorry for my
ignorance but what is a stopword?  this is new feature (?) in CVS.  how is
this configured?  can ZCatalog and word.net be somehow integrated, this I
believe would incorporate natural language queries into ZCatalog, as well as
plurals!  what would be the integration point to this?  has anyone thought
about this?  it would probably be *REALLY* easy for someone familiar w/ the
ZCatalog to plug this in in less than a few hours.  not necessarily
practical (?) -- but I believe its an interesting idea.  again, where ~
would this be integrated?  any ideas?

wordnet: http://www.cogsci.princeton.edu/~wn/

python module:
http://www.cs.brandeis.edu/~steele/sources/wordnet-python.html


george runyan


___
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] Site Access Counter

2000-05-31 Thread George Donnelly

http://www.zope.org/Members/srichter/Products/ZCounter

here is a product that someone created to do just what you are saying.

i'm a newbie as well, only been using zope for a few weeks.


on this list newbie questions tend to get ignored. :-((


Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
Opportunity is missed by most people because it is dressed in overalls, and
looks like work. --Thomas Edison

> hi all,
> 
> allow me to start by saying that i am relatively new to zope...  i have made
> a web site in zope, but would like to have an access counter on it too.  our
> zope2.1.6 server is running on redhat6.1 with apache1.3.9.  i have seen
> access counter scripts that require perl5, but i have heard that those won't
> work with zope.  can someone please help me?  Thank you all in advance!
> 
> Shaun


___
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] Where can I install Zope?

2000-05-28 Thread George Donnelly

it can be run on a virtual host its just that zope is a long running process
and therefore uses up a lot of resources. so some hosts dont like it.

you can search at zope.org for some official zope hosts that will provide
you a vhost account with zope already installed. alternatively if you are
wiling to install maintain etc yourself you can look for a more agreeable
host. i took the second route with csoft.net

be advised tho that installing zope without having root acess is a major
headache

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
And be on they guard against the good and the just! They would fain curcify
those who devise their own virtue -- they hate the lonesome ones.
--Friederich Nietzsche


> I just found out that I cannot run executable files on my server.  I have a
> 9NetAve.net virtual hosting account.  They tell me I cannot run Zope on the
> server.  
> 
> Does anyone know this to be true?   (Will not run on a virtual host)  Do I
> have to have my own server?
> 
> If so could someone suggest an alternate service or something for me?
> 
> 
> Thank You
> Darin Mosier


___
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] km net news: missing rate and genpop?

2000-05-26 Thread George Donnelly

when i create a lm artticle store i only 5 files (plus the catalog of
course)
  article_footer
  article_header
  incoming.html
  item_html
  popular.html

although there are a tons of files inside the km net news folder in the
products folder i am not seeing anything else when i create the article
store. is this right? am i missing something?

zope 2.1.6 with python methods installed.

tia

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
The problems of the world cannot possibly be solved by skeptics or cynics
whose horizons are limited by the obvious realities. We need men who can
dream of things that never were. --John F. Kennedy 


___
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] import DemoPortal.zexp not working, help!

2000-05-17 Thread George Donnelly

i followed the instructions for installing the PTK from the snapshot but am
getting stuck on the part where i import the DemoPortal.zexp, although i can
see the two products (PTKBase and PTKDemo) fine in the management interface,
i get the following error when i try to import DemoPortal.zexp. (even after
shutting down and restarting zope i still can not see the portal option in
the add list for my folders

im using zope 2.1.6 btw

tia


Traceback (innermost last):
  File /export/home1/libertad/Zope216/lib/python/ZPublisher/Publish.py, line
214, in publish_module
  File /export/home1/libertad/Zope216/lib/python/ZPublisher/Publish.py, line
179, in publish
  File /export/home1/libertad/Zope216/lib/python/Zope/__init__.py, line 202,
in zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /export/home1/libertad/Zope216/lib/python/ZPublisher/Publish.py, line
165, in publish
  File /export/home1/libertad/Zope216/lib/python/ZPublisher/mapply.py, line
160, in mapply
(Object: manage_importObject)
  File /export/home1/libertad/Zope216/lib/python/ZPublisher/Publish.py, line
102, in call_object
(Object: manage_importObject)
  File /export/home1/libertad/Zope216/lib/python/OFS/ObjectManager.py, line
484, in manage_importObject
(Object: ElementWithAttributes)
  File /export/home1/libertad/Zope216/lib/python/ZODB/ExportImport.py, line
284, in importFile
SystemError: (see above)






Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
An idea is putting a truth in check-mate. --Jose Ortega y Gasset



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