[Zope] identity values from sql server , mxodbc da

2010-04-21 Thread Josh Burvill
Hi I am using zope 2.8.11

I am using mxodbc da to connect to sql server and I was wondering what is
the best way to get the new value of the primary key (an identity field)
after inserting.

It looks like there are 3 slightly different functions I could use:



SCOPE_IDENTITY, IDENT_CURRENT, and @@IDENTITY are similar functions because
they return values that are inserted into identity columns.

IDENT_CURRENT is not limited by scope and session; it is limited to a
specified table. IDENT_CURRENT returns the value generated for a specific
table in any session and any scope. For more information, see IDENT_CURRENT
(Transact-SQL) http://msdn.microsoft.com/en-us/library/ms175098.aspx.

SCOPE_IDENTITY and @@IDENTITY return the last identity values that are
generated in any table in the current session. However, SCOPE_IDENTITY
returns values inserted only within the current scope; @@IDENTITY is not
limited to a specific scope.

 (from http://msdn.microsoft.com/en-us/library/ms190315.aspx)
It seems like scope_identity might be the best one to use, but is it
possible that two zope transactions might occur within the one sql server
scope and session and therefore get the wrong identity value depending
on timing etc.

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


Re: [Zope] calling javascript method from dtml method

2009-03-15 Thread Josh Burvill
Just put a dtml-var x

where x is a dtml document with your javascript in it.

Even though it should be in the header it still seems to work



2009/3/15 Dvir Bar-lev dvi...@puresight.com

  Hi



 Is there any way to call a javascript method from a dtml method somewhere
 in the body of it?

 The method cam be in a different js file which is preferable or in the dtml
 method if there is no other way, from what I found on the web it looks like
 I can’t but I want to make sure that I didn’t miss anything

 ___
 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-dev] OrderedMultiSelectWidget in Zope2: context weirdness?

2008-05-08 Thread Josh Johnson (jjmojojjmojo)
I'm looking at the code for OrderedMultiSelectWidget, in 
zope.app.form.browser.itemswidgets (line 535). 


This code doesn't make sense to me:

if hasattr(self.context.context, self.context.__name__):
available_values = self.context.get(self.context.context)
else:
   available_values = []

From what I can tell, this code is grabbing anything on the current 
content/view that's named the same as the name of the vocabulary 
provider. This bit me earlier with this error:


Traceback (innermost last):
 Module ZPublisher.Publish, line 119, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 42, in call_object
 Module zope.formlib.form, line 770, in __call__
 Module zope.formlib.form, line 764, in render
 Module plone.app.form._named, line 26, in __call__
 Module Shared.DC.Scripts.Bindings, line 313, in __call__
 Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
 Module Products.PageTemplates.PageTemplateFile, line 129, in _exec
 Module Products.PageTemplates.PageTemplate, line 89, in pt_render
 Module zope.pagetemplate.pagetemplate, line 117, in pt_render
 Module zope.tal.talinterpreter, line 271, in __call__
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 891, in do_useMacro
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 536, in do_optTag_tal
 Module zope.tal.talinterpreter, line 521, in do_optTag
 Module zope.tal.talinterpreter, line 516, in no_tag
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 891, in do_useMacro
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 536, in do_optTag_tal
 Module zope.tal.talinterpreter, line 521, in do_optTag
 Module zope.tal.talinterpreter, line 516, in no_tag
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 957, in do_defineSlot
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 536, in do_optTag_tal
 Module zope.tal.talinterpreter, line 521, in do_optTag
 Module zope.tal.talinterpreter, line 516, in no_tag
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 861, in do_defineMacro
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 949, in do_defineSlot
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 536, in do_optTag_tal
 Module zope.tal.talinterpreter, line 521, in do_optTag
 Module zope.tal.talinterpreter, line 516, in no_tag
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 949, in do_defineSlot
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 861, in do_defineMacro
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 861, in do_defineMacro
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 957, in do_defineSlot
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 534, in do_optTag_tal
 Module zope.tal.talinterpreter, line 516, in no_tag
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 824, in do_loop_tal
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 536, in do_optTag_tal
 Module zope.tal.talinterpreter, line 521, in do_optTag
 Module zope.tal.talinterpreter, line 516, in no_tag
 Module zope.tal.talinterpreter, line 346, in interpret
 Module zope.tal.talinterpreter, line 745, in do_insertStructure_tal
 Module Products.PageTemplates.Expressions, line 221, in evaluateStructure
 Module zope.tales.tales, line 696, in evaluate
  - URL: pageform
  - Line 104, Column 10
  - Expression: PathExpr standard:'widget'
  - Names:
 {'container': PloneSite at /plone,
  'context': PloneSite at /plone,
  'default': object object at 0xb7dd6528,
  'here': PloneSite at /plone,
  'loop': {'widget': 
Products.PageTemplates.Expressions.PathIterator object at 0xb248fd8c},

  'nothing': None,
  'options': {'args': ()},
  'repeat': Products.PageTemplates.Expressions.SafeMapping object 
at 0xb249e32c,

  'request': HTTPRequest, URL=http://x,
  'root': Application at ,
  'template': ImplicitAcquirerWrapper object at 0xb249e2ac,
  'traverse_subpath': [],
  'user': PropertiedUser 'admin',
  'view': Products.Five.metaclass.ImportActivitiesView object at 
0xb244898c,
  'views': zope.app.pagetemplate.viewpagetemplatefile.ViewMapper 
object at 0xb249e2cc}

 Module zope.tales.expressions, line 217, in __call__
 Module Products.PageTemplates.Expressions, line 161, in _eval
 Module Products.PageTemplates.Expressions, line 123, in render
 Module zope.app.form.browser.itemswidgets, 

Re: [Zope] Re: [Zope-DB] case insensitive ZSQL queries

2007-09-06 Thread Josh Burvill
Providing your database has the upper() function, or replace with similar


select ...
dtml-sqlgroup where
  dtml-if firstname
 upper(firstname) like upper(dtml-sqlvar firstname type=string)
   /dtml-if
  dtml-or
dtml-if lastname
 upper(lastname) like upper(dtml-sqlvar lastname type=string)
   /dtml-if
  dtml-or
...etc...
  /dtml-sqlgroup

On 06/09/07, Jaroslav Lukesh [EMAIL PROTECTED] wrote:

 Use MS-SQL or Sybase :o)

 - Original Message -
 From: onsombal [EMAIL PROTECTED]
 
  is there an easy way to make the following ZSQL query case-insensitive?
 
  select * from clients
  dtml-sqlgroup where
 dtml-sqltest firstname op=like type=string optional
   dtml-or
 dtml-sqltest lastname op=like type=string optional
   dtml-or
 dtml-sqltest client op=like type=string optional
   /dtml-sqlgroup
 
 ___
 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] How can I get all roles defined

2007-03-22 Thread Josh Burvill

Hi everyone,

I need to get all the roles that are defined in the security tab of a
particular folder.

I know how to get all roles that a user has got, but cannot find the above.

Thanks, Josh
___
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: How can I get all roles defined

2007-03-22 Thread Josh Burvill

def get_roles():
 from AccessControl.Role import RoleManager

 rs=RoleManager().userdefined_roles()

 return rs

i tried this in an external method but i only get:
('Anonymous', 'Authenticated', 'Manager', 'Owner')

and not all the roles i have defined in the folder.

I also tried the methods:
get_local_roles
and
valid_roles

I'm probably not using the right method, or doing something wrong. Any
further tips?

Thanks, Josh

On 23/03/07, Tres Seaver [EMAIL PROTECTED] wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Josh Burvill wrote:
 Hi everyone,

 I need to get all the roles that are defined in the security tab of a
 particular folder.

 I know how to get all roles that a user has got, but cannot find the
above.

 Thanks, Josh

AccessControl/Role.py is your friend.  The mix-in class is a RoleManager.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGAxgw+gerLs4ltQ4RAvaKAJ9mp8UqlIDbbRuohTXIKAaWOCN/kgCg2DjW
AVvfKLoA21KgGkVdwONtDmg=
=BsoS
-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 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] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Josh Burvill
there is some info in zopebook 2.6 edition in the advanced scripting chapter:http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/ScriptingZope.stx
where there are some links in this chapter where it mentions activestate:
http://www.zope.org/Members/andym/wiki/FrontPagehttp://downloads.activestate.com/Zope-Perl/
hth,Josh
___
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] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Josh Burvill
Sorry, just noticed thats already been considered...On 04/10/06, Josh Burvill [EMAIL PROTECTED] wrote:
there is some info in zopebook 2.6 edition in the advanced scripting chapter:
http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/ScriptingZope.stx
where there are some links in this chapter where it mentions activestate:
http://www.zope.org/Members/andym/wiki/FrontPage
http://downloads.activestate.com/Zope-Perl/
hth,Josh


___
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] automated object exporting

2006-09-27 Thread Josh Burvill
Or in windows, do a similar thing using a scheduled task and wget (from cygwin) to invoke manage_exportObject with the options you want.Josh
On 28/09/06, Jonathan [EMAIL PROTECTED] wrote:







If you are in a *nix environment i would suggest 
investigating 'cron' and using the 'manage_exportObject' method (google 
away!)

hth

Jonathan


  - Original Message - 
  
From: 
  Sascha 
  Adler 
  To: 
zope@zope.org 
  Sent: Wednesday, September 27, 2006 5:24 
  PM
  Subject: [Zope] automated object 
  exporting
  Hi,I have a Zope object (a Plone site, to be specific) 
  that I would like to have exported on a regular basis so I can back it up to 
  another server. While I am familiar with Python, I'm not familiar with the 
  specific methods involved in interacting with Zope for this. How would I go 
  about doing this? Thanks,-Sascha
  
  

  
___
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] LocalFS - user needs to be manager?

2006-09-22 Thread Josh Burvill
Hello again,

Update - the problem is not experienced withlocalfs-andreas-1.3

That is my solution for now.

Thanks, Josh
On 21/09/06, Jonathan [EMAIL PROTECTED] wrote:
 


Tryturning on verbose security in zope.conf - there are two settings that you need:

security-policy-implementation pythonverbose-security on



Jonathan




- Original Message - 
From: Josh Burvill 

To: David H 
Cc: zope@zope.org 
Sent: Wednesday, September 20, 2006 10:04 PM
Subject: Re: [Zope] LocalFS - user needs to be manager?

On 21/09/06, David H [EMAIL PROTECTED] 
 wrote: 
Josh Burvill wrote: Hi all, I am experiencing an odd situation where if a user does not have 
 manager role, he/she cannot browse a localfs object. I think it can't be a filesystem permissions or zope process os user  problem because if the zope user has the manager role, there is no 
 problem. I can't see anything in the permissions for the localfs object to cause a problem, they are all on acquire.  Any hints? Zope 2.8.6-final
 , python 2.3.5, win32 LocalFS-1-7-andreasJoshDid you do an Zope upgrade recently?Why do you say its odd what wasnormal before? DavidI upgraded my zope from 
2.6.4 a couple months ago, but only installed localfs yesterday.Being new to localfs, I don't really know if it is odd or normal, but it seems odd.The unprivileged (but authenticated) zope user is asked to reenter their login details (basic http auth) when they try to click on the link to the localfs object, and not allowed to view it. But if i grant the user the zope Manager role, they are let in. 
Hope this clarifies the problem. 



___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-announcehttp://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] LocalFS - user needs to be manager?

2006-09-20 Thread Josh Burvill
Hi all,I am experiencing an odd situation where if a user does not have manager role, he/she cannot browse a localfs object.I think it can't be a filesystem permissions or zope process os user problem because if the zope user has the manager role, there is no problem.
I can't see anything in the permissions for the localfs object to cause a problem, they are all on acquire.Any hints?Zope 2.8.6-final, python 2.3.5, win32LocalFS-1-7-andreas
Josh
___
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] LocalFS - user needs to be manager?

2006-09-20 Thread Josh Burvill
On 21/09/06, David H [EMAIL PROTECTED] wrote:
Josh Burvill wrote: Hi all, I am experiencing an odd situation where if a user does not have manager role, he/she cannot browse a localfs object. I think it can't be a filesystem permissions or zope process os user
 problem because if the zope user has the manager role, there is no problem. I can't see anything in the permissions for the localfs object to cause a problem, they are all on acquire.
 Any hints? Zope 2.8.6-final, python 2.3.5, win32 LocalFS-1-7-andreasJoshDid you do an Zope upgrade recently?Why do you say its odd what wasnormal before?
DavidI upgraded my zope from 2.6.4 a couple months ago, but only installed localfs yesterday.
Being new to localfs, I don't really know if it is odd or normal, but it seems odd.
The unprivileged (but authenticated) zope user is asked to reenter
their login details (basic http auth) when they try to click on the
link to the localfs object, and not allowed to view it. But if i grant the user the zope Manager
role, they are let in.

Hope this clarifies the problem.
___
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] Access Rule getUserName problem

2006-08-24 Thread Josh Burvill
Hello,I have this script (see below) set as an access rule for
a folder. When it is run directly it prints out the correct user. But
when it runs indirectly as an access rule (ie when accessing some other
object in the folder, the user is always Anonymous User.
I am using Zope 2.8.6-final, python 2.3.5, win32.I am
using simpleuserfolder and sessioncrumbler in part of the site, but it
also happens with a regular user folder and normal http authentication.Thanks
request=container.REQUESTthe_user=_.SecurityGetUser().getUserName()print the_usercontext.audit_trail_sql(bigbird_user=the_user, \
 request_form=request.form, \ request_url=request['ACTUAL_URL'], \ client_ip=request['REMOTE_ADDR'])return printed
___
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: zwiki connection error

2006-06-09 Thread Josh Stephenson
A zope restart does not fix it.  and nothing is in the event.log (except 
for a few security declarations for nonexistent methods in issuetracker).


Entries for the requested page are in the Z2.log previous to this ZWiki 
madness.  I emptied the log, restarted zope and then tried to access the 
wiki.  Now: no records of that page in the log at all.


I've tried refreshing the product as well as completely reinstalling it.

Thanks for helping.

-josh

Simon Michael wrote:
Hi Josh. Does a zope restart fix it ? Does anything appear in 
event.log/error_log ? Do you see the expected url in Z2.log (ruling 
out an apache rewrite problem) ? Have you been using the product 
refresh feature ?


___
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] zwiki connection error

2006-06-08 Thread Josh Stephenson

Hey all,

Recently, ZWiki stopped working on my zope 2.9.2 intel mac os x 10.4 box 
(python 2.4.2).  It was working fine until sometime yesterday, when I 
could no longer access my wiki using the address http://my ip:8080/mywiki


This is strange because zope is running, I can get into the zmi, create 
objects from any other product, view public pages running on the zope 
server, but whenever I try to view my wiki, I get:


Unable to connect
Firefox can't establish a connection to the server at my ip:8080.


Again, just to be clear, I can view any other zope-hosted page using the 
same ip and port.


Any thoughts?

-josh
___
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] psycopgda

2006-05-08 Thread Josh Stephenson

Thanks for the help Infor

I deleted the psycopgda 1.0.0 product from zope and installed version 
1.1.21 via the psycopg-1.1.21 tarball.  After consulting the FAQ I 
realized I had to install mxDateTime, and run ./configure telling it 
where to find zope, postgres libs and the mxdatetime lib.  Then, after 
running make, make install and make install-zope, I had to copy the 
PsycopgDA dir to the Product dir of my zope instance.


Thanks for the help from everyone else too!


Infor Gates wrote:
version 1.0.0 is very old. You should try the last stable version 
1.1.21.  I have used this version with Zope 2.8.x with Postgresql 
8.0.x.  It is stable.


CY

*/Josh Stephenson [EMAIL PROTECTED]/* wrote:

I recently installed psycopgda version 1.0.0 and restarted zope. I
can
see that it installed because it's listed under products in zope's
control panel, but it's not listed in the drop-down menu where all
the
other products are.

I installed by doing:
python install.py build
python install.py install

Zope 2.9.2
Python 2.4.2
PostgreSQL 8.1.3


I've tried installing psycopg version 2-2.0b8, but I don't even get a
listing in the products under zope's control panel.

What am I doing wrong?
___
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 )



Blab-away for as little as 1¢/min. Make PC-to-Phone Calls 
http://us.rd.yahoo.com/mail_us/taglines/postman2/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com 
using Yahoo! Messenger with Voice. 


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

2006-05-05 Thread Josh Stephenson
I recently installed psycopgda version 1.0.0 and restarted zope.  I can 
see that it installed because it's listed under products in zope's 
control panel, but it's not listed in the drop-down menu where all the 
other products are.


I installed by doing:
python install.py build
python install.py install

Zope 2.9.2
Python 2.4.2
PostgreSQL 8.1.3


I've tried installing psycopg version 2-2.0b8, but I don't even get a 
listing in the products under zope's control panel.


What am I doing wrong?
___
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] Core Session

2001-01-28 Thread josh on

Is core session a part 2.3?  
Can someone point me to the documentation on it?

Thanks,

josh on


___
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] with a variable

2001-01-12 Thread josh on

I want to read an zclass instances' properties.  I want to make some dtml
that can be passed the instances' id then give me the properties that I
request.

I was trying dtml-with  and it worked when I plugged the id striaght into
it, but when I tried substituting that with a dynamic varible I couldn't get
it to work.

I have been trying some other approaches that maybe someone could tell me if
I am on the right track or if there is some cumentaion that could help me
out.  I have been going through the list archives for hours!

here is a my latest failed attempt!

dtml-call "REQUEST.set('userid', 979226100)"
dtml-var "_[userid]._getAttribute(hairpart)"

I know that I could use the Catalog, but it seems crazy to have to track
everyvariable property of an object that I want to access.

I am sure that this is a basic problem and would love some help with it.

josh on


___
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] with a variable

2001-01-12 Thread josh on

thanks Steve and Rick,

Unfortunately  both your solutions brought up this error:

Error Type: SystemError
Error Value: bad argument to internal function

 dtml-call "REQUEST.set('userid', 979226100)"
 dtml-with "_[userid]"
 dtml-var attribute
 /dtml-with
 or
 dtml-with "_.getitem(userid)"

  This works:
  dtml-with 979226100
  dtml-var attribute
  /dtml-with

I want to get some properties for a zclass instance after being passed its
id in a variable. In these tests I have been defining the varible in the
code, in the final case it will be passed through the url.

Using the id directly as above works fine, it writes the attribute to the
page.

Thanks for any help,

Josh On


___
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] with a variable

2001-01-12 Thread josh on


I got it to work thanks for the help!

dtml-call "REQUEST.set('userid', '979226100')"
dtml-with "_[userid]"
dtml-var attribute
/dtml-with

it was the cobination of no quotes around the the userid AND setting the
variable as a string not an integer!

arrrggghh... thank godness, now I can have lunch.

josh on


___
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] with a variable

2001-01-11 Thread josh on

Hi,

a small problem!,

This works:
dtml-with 979226100
dtml-var attribute
/dtml-with

This doesn't:
dtml-call "REQUEST.set('userid', 979226100)"
dtml-with "_.getitem('userid')"
dtml-var attribute
/dtml-with

Nor this:
dtml-call "REQUEST.set('userid', 979226100)"
dtml-with "userid"
dtml-var attribute
/dtml-with

Nor this:
dtml-call "REQUEST.set('userid', 979226100)"
dtml-with userid
dtml-var attribute
/dtml-with

What I want to do is have a varible passed to the page which says what
zclass instance to get the properties of.

any help appreciated.

josh on


===
write: [EMAIL PROTECTED]
read: www.futurefarmers.com
read: www.crd.rca.ac.co.uk/~josh
interrupt (i love it): (415) 552 2124
=


___
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-dev] more on keyword indexes

2000-12-18 Thread Josh Zeidner


Hello,

  Thanks for all the replies.  Its seems there are two conflicting answers 
to my questions.  Steve Alexander says that it is possible to query indexes 
using the syntax dtml-in "Catalog.searchResults( doc_keywords = 
['one','two','ect'] .  However, Dieter says that it is not yet possible to 
query for more than one keyword at once.  It seems to me that these two 
sentiments are mutually exclusive.  Am I mistaken here?

-josh


Josh Zeidner writes:
 OK.  Is it possible to query keyword indexes for several keywords at 
once?
Not that I know of.

You either have to extend ZCatalog or wait some time.
There are different people working on ZCatalog enhancements.

  Again, I am reporting a bug 
You already know the Collector?
It is Zope's bug tracking system.

You find it via zope.org.
Its old URL has been

 URL:http://classic.zope.org:8080/Collector

but this might have changed after the recent changes on zope.org.


I have had very good response to Collector bug reports for Zope itself.
At least in the past, bug reports and even patches for ZCatalog
probably have been ignored, however. I hope, this has changed
meanwhile.

By the way:

   *  What does "unpredictable results" mean?


Dieter

PS: I have just blocked mail from "hotmail.com" (and "excite.com")
 because I got an increasing number of bulk email ad's
 with a faked "from: [EMAIL PROTECTED]" header.

 This means: I will no longer see direct messages from
 you, only your Zope mailing list messages which reach me
 with a delay of up to one day.

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


_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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




[Zope-dev] keyword indexes

2000-12-14 Thread Josh Zeidner

Hi,

  Currently I am wrestling with "keyword" indexes in ZCatalogs.  How do I
query the ZCatalog for all records of objects indexed on a particular
keyword.  For instance if my index is named MediaKeyword ive tried:

 dtml-in "Catalog.searchResults( MediaKeywords = ['ouch'] )"

   this has completely unpredictable results.

 dtml-in "Catalog.searchResults( MediaKeywords in ['ouch'] )"

   this returns all indexed objects!

  What am I doing wrong?  Is there a special ZCatalog function for querying
keyword indexes?  I need some insight into this problem.

   Thanks!
Josh Zeidner


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




[Zope-dev] more on keyword indexes

2000-12-14 Thread Josh Zeidner

Hello,

  I did a little more investigiation into the problem, and couldnt really
find any documentation anywhere on what the actual semantics are of keywords
and how they are queried.  For instance:

  I have three classes and each has an keyword index named KW:

  ObjectOne:KW = ['one','blue','furry']
  ObjectTwo:KW = ['two','flying','purple']
  ObjectThree:  KW = ['three','one-eyed','purple']

  If I were to query the ZCatalog with the following set of words:
['purple'] I would expect to get:

ObjectTwo
ObjectThree

  Right?  If I query the database with ['one','two'] ( if this type of thing
is at all possible ), I get :

ObjectOne
ObjectTwo

  This seems like the obvious result: BUT: it depends if you want a AND/OR
type search.  I could also expect to get nothing( if its an AND type search
because no records match 'one' and 'two' ).  Here is better example, what if
I queried: ['purple','one-eyed'].  Would I be expecting only ObjectThree or
[ ObjectThree, ObjectTwo ] ( because they both match the keyword purple( a
logical set-intersection ) ).

  Also I found the keyword indexes to have some more obvious bugs.  If I
only used one keyword for the matching critiria,  for instance if I used
'purple' , I would only get ObjectTwo.  Is anyone else using keyword
indexes?  In what way are you using them?


   Thanks,

   Josh Zeidner

   http://www.brooklynmedialabs.com


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




RE: [Zope-dev] python 2.0, windows and zope

2000-12-13 Thread Josh Zeidner


Ive successfully installed the latest version of zope on windows and have it
running my website.  http://www.brooklynmedialabs.com .  Its actually easier
than running it on linux!

 -josh



Has anyone got python 2.0 working with Zope on windows? Just curious if
anyone has any pointers before I start done this (potentially) painful
path...

--
  Andy McKay, Developer.
  ActiveState.


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



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




[Zope] feedback on ZCatalog section of Zope Book

2000-12-13 Thread Josh Zeidner

I tried out the example in the Zope book and found that the ZCatalog aware
example only works if you create the "default" catalog as explained
elsewhere( must be named "Catalog" ).  Am I doing something wrong or is this
an error in the book?

 -keep up the good work!

  Josh Zeidner


___
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] updating the catalog - successfully!

2000-12-11 Thread josh on

I was having a lot of problems with keeping a catalog up to date when I
manipulated data in an instance of a zclass (catalog aware).  I was calling
this, from a dtml file in the same folder as the instances, and one folder
down from the Catalog:

dtml-call "_[userid].propertysheets[1].manage_changeProperties(REQUEST)"
dtml-call reindex_object

This just was not re-indexing the Catalog successfully at all.  I checked
the zope list and I think that a lot of people have had the same problem,
including myself a few months back... All the answers suggest using:

dtml-call reindex_object

or even:

dtml-call reindex_object
dtml-call reindex_object

So I just littered that all through my code in the vein hope that the
Catalog would get the hint. But it was stubborn.  The data would be altered,
meanwhile the Catalog remained oblivious.

The good news is that I have seemingly found a way to update my catalog by
making a method of my zclass called update_dtml which I call when change the
data of an instance. the method contains only one thing (of course):

dtml-call reindex_object

I call it from the dtml that manipulates the data of the instance (from a
file in the same directory as the instances):

dtml-call "_[userid].propertysheets[1].manage_changeProperties(REQUEST)"
dtml-in "objectValues(['zclassuser'])"
dtml-var update_dtml/dtml-in

The bad news is that I don't have a clear understanding of why this works. I
guess that the dtml-call reindex_object is context sensitive and is a
method of the zclass, so it needs to be called from there.

Does this make sense ?  If it does I think that it should be turned into a
how to.

or am I just being silly?

josh on

===
write: [EMAIL PROTECTED]
read: www.futurefarmers.com
read: www.crd.rca.ac.co.uk/~josh
interrupt (i love it): (415) 552 2124
=


___
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, zclass instances

2000-12-09 Thread josh on

Hello,

I am building a small community site.
I am building the login/signup system.
I have a problem with the creation of new users on signup.  I have a users
zclass which is catalog aware.  I used the job board tutorial to set it up
(thanks! very useful documentation)
When I a user signs up I search the catalog for their username, because I
want to keep that unique. here is the code:

Content-type: application/x-www-form-urlencoded

dtml-in Catalog
_root.feedback=sorry+name+taken
dtml-if sequence-end
/dtml-if sequence-end
dtml-else
dtml-var add_user_dtml
/dtml-in

This page is passed the variable "username".  This works to catch existing
usernames most of the time.  However, in a few cases it will miss the fact
that the name matches an existing name and go ahead to the dtml-var
add_user_dtml page:

dtml-call "REQUEST.set('password', signuppassword)"
dtml-call "REQUEST.set('username', username)"
dtml-with "manage_addProduct['swatchuser']"
dtml-call "swatchuser_add(_.None, _, NoRedir=1)"
/dtml-with
_root.feedback=success

This code usually successfully adds a new user.  However if the username is
a duplicate (it shouldn't arrive at this page, but if it does) it will only
successfully make a new zclass instance of the user if they are a single
letter long
Thus I get a user list that looks like this:

max , yay , josh , mary , peter , john , ann , dog , cat , badger , fork , g
, k , ww
, u , u , u , u , u , b , u , erm , frog , erk , damn , erkf , this , bg , q
, q , e , u , aname , j , j , j , j , j , j , j , j , j , j , amy , y , y ,
y

So for single letter names the user signs up no matter whether someone else
has that name or not.  Which is not what I want. But the problem does not
end their, else I would just not permit one letter name. For those who
choose names of more than one letter, they may be told that they have
successfulluy created a new user when they haven't.  The times when this
happens are usually if I haven't closed and opened the browser between
sign-ups.  However it happens seemingly randomly.

I am calling all this code from a flash file in the same directory.  I have
the same thing working using zope and SQL no problem, but can't work it out
with zcatalog.  Unfortunately I need to!

My first inuitions are that:

1: it has something to do with the pages being cached.
2: I am not updating the catalog properly, though I added the lines
suggested in the job board tutorial to the add method of the zclass:
  dtml-call reindex_object

Any hints will be appreciated...

I think I may be reporting the same problem that is mentioned in:

http://www.egroups.com/message/zope/44901

but I am not sure.

thanks for your time

josh on




===
write: [EMAIL PROTECTED]
read: www.futurefarmers.com
read: www.crd.rca.ac.co.uk/~josh
interrupt (i love it): (415) 552 2124
=


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




[Zope-dev] zope ftp site

2000-12-08 Thread Josh Zeidner

hi,

  This may be a redundant question, but how can I download zope products via 
FTP?

-josh

_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


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




[Zope-dev] zoplets....

2000-10-25 Thread Josh Zeidner


groove.net has a lot of potential for coordinating open-source projects... 
maybe someone can schedule one of those hairy zope-xml discussions on there.

-josh

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


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




Re: [Zope-dev] Thanks for the comments

2000-10-13 Thread Josh Zeidner


  WROX contacted me a while back saying they wanted to do a Zope book as 
well.  Does anyone know anything about this?

  -josh



Just thought we'd mention that we have gotten lots of great comments on
the Zope book so far, especially in the last week or so.  You're all
helping make it a better book and ensuring Zope's future.  if you've
felt in the past that you may not be technically proficient enough to
contribute to the technology of Zope, you can certainly contribute to
the documentation by catching our mistakes and making good observations
and asking good questions. It is really, really helping.  Keep it up,
cuz we're not done yet!

Thanks,

Michel and Amos

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


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


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




[Zope] user permissions

2000-07-24 Thread josh on

I just installed 2.2 on win98.

I log on as a superuser, and try and make a new folder an I get:

Zope Error

   Zope has encountered an error while publishing this resource.

   Error Type: SuperCannotOwn
   Error Value: Objects cannot be owned by the superuser

So I used to do that I thought.  I tried to make a new acl user, but
couldn't log in with that name password combo.  I saw that webmaster asked
this a couple of days ago, but I saw no answer.

Am I being dumb and missing the obvious?  Do I need to go and read some how
to about users and permissions?

any help would be great.

josh on


___
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-dev] Product Data Storage

2000-06-30 Thread Josh Zeidner



You should look into using ZCatalog for this purpose.

-josh zeidner



I have an interesting issue which I don't think has been raised.  But
instead of solving the issue myself I thought I would share it with you
guys/gals and see what you think.

I am currently working on a Zope MailIn product, which allows you to send
emails directly in to Zope.
Version 0.1 can be found at:
http://www.zope.org/Members/NIP/ZMailIn

In version 0.2 I plan to have a ZMailIn python product which will handle 
the
Zope side of things and behave a bit like a client.  For example you could
add a ZMailIn product instance in to Zope and configure it to receive all
emails for [EMAIL PROTECTED] and provide a method to execute upon mail
arrival.

This is great and you could have n ZMailIn product instances throughout 
your
Zope site and in any position.

When email arrives I need to find all the ZMailIn instances within the ZODB
and hand the email to the correct one.

I have decided AGAINST searching the ZODB for instances of ZMailIn because
that is just too scary, hideously inefficient and I don't want to go there.
Instead I thought of keeping an up-to-date list of where all the current
instances where held.  My original idea was to get the ZMailIn product to
write a file in to the /lib/python/Products/ZMailIn directory, which
shouldn't cause any problems that I can see.

However, It had occurred to me that with the current growth of Zope it was
going to become more popular that separate Zope instances of the same
product may need to share some data.

So my question is this:
What are peoples opinions on storing shared product data?  Where should it
be placed?  Should this ability be added to Zope as a standard?

Thanks in advance.
-Andy Dawkins
(New Information Paradigms Ltd)


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



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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




Re: [Zope-dev] zope-cocoon interoperability( Zope/XML )

2000-06-21 Thread Josh Zeidner



  You should definately take a look at the work being done with Zope and 
XML.  In a nutshell, DC and FourThought are making the Zope object tree DOM 
compliant.  In addition, XSLT operations will be supported similar to the 
way DTML methods interact with Zope.  Also XPath and XLink are being 
examined for thier integration with Zope and ZDOM.  The list can be found on 
egroups.com, named Zope-XML .

  -Josh Zeidner


hi, wish to introduce to everyone a thought.
i see great value in zope and cocoon interoperability.

just to ponder:)
will elaborate before next dance

here is my post to cocoon_group today:
thank you
michael
(//xml.apache.org..)

IMHO, cocoon and zope interoperability is a win win situation.
-for my needs with drawingincode.com

currently trying to get support from UUnet/mciWorldcom to fund
open_source related projects.

status: between a rock and a hardplace
  sales and managers(pre-occupied with thoughts of-t.v.
commercials)

if somone is friends with Mike O'Dell (VP and chief scientist at UUNet)
please have him mail me :)

Thank You
michael p bolger
[EMAIL PROTECTED]




drawingincode

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



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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




[Zope] scared

2000-06-20 Thread josh on

when things happen that I have no understanding of their cause I get a
little scared.

I started up zope this morning, it seemed to open normally.
(I am running zserver and zope on  a win98 machine)
However when I went to access the site through the web, the server would
shut down.

I have recently exported the app. that I was working on, which makes me
happy but I need to get it back up and working asap.  What information do I
need to get the bottom of this?
I don't know how to copy and paste from a dos window, so I will transcribe
what I can see, hopefully someone can tell me where I might look next! (I
have taken out all the directory structure from the filenames)

File "...\ZServer\medusa\asyncore.py", line 321, in handle_error
self.close()
File "..\ZServer\HTTPServer.py", line 356, in close p.more() #free up
resources held by producer
File "..\ZServer\Producers.py", line 108, in more getattr(self.logger,
self.method)(self.bytes)
File "..\ZServer\medusa\http_server.py", line 275, in log, _ _ [%s] "%s" %d
"%s" "%s"\n' % (  LOG STUFF )
...
IOError: [Errno 9] Bad file descriptor


Oh I feel rotten, way out of my depth!  I just want zope to work!!!
Not really sure where to start, will reinstalling the whole thing write over
my data?
I guess I have it backed up, but still...

thanks for ANY help!!

josh on




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

2000-06-20 Thread josh on

Would it be a bad idea to just install another copy of zope in a different
directory?  Would that clash somehow?

josh


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

2000-06-20 Thread josh on

Thanks Chris,

 As for your error, it looks like something bad happened when zope tried
 to write to the log file. Did you do any funny configuration fro your
 logging? What version of Zope are you using?

I haven't changed anything to my knowledge.

It did stop working after a crash though.  Perhaps something is corrupted, I
got a friend to test my site.  He kept rightclicking and choosing "back", as
quickly as he could and then it crashed...

I think the page it crashed on had some .js in it...

erk,

I am using "Notes on Zope 2.0"

oh gee I thought I was using 1.6!

What version would you recommend installing?

Thanks,

josh





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

2000-06-20 Thread josh on

I have reinstalled zope and zodb, and copied the data.fs across.  It was
about two days old.  All the changes that I had made were gone.  Luckily I
made a backup of my app yesterday by exporting it.

I must have a bad understanding of how this works.  I had imagined that
everytime I hit CHANGE, that the data.fs file would have been updated.

When the computer crashed where were all my current changes?  Is there a
temp file I might be able to recover, as I am still missing quite a few
hours work!

The lesson that I have learnt is to back up regularly by exporting.  Is this
the right conclusion?

Thanks,

 josh on


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




[Zope-dev] passing variables

2000-06-17 Thread josh on

Is there a way to pass variables from one page to another using an a href
but not including them in the url after a ??

sorry, I know this is an html question, but I figured it was pretty zope
related.

josh on


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




[Zope] compiling images

2000-06-14 Thread josh on

Hello,

I have been trying to get a collaborative comic book buider made in zope and
macromedia director.

First I want to say that I have enjoyed working in the open source world of
zope so much more than director.  Whilst some parts of Director are well
documented, others are positively hidden away...  completely propritary it
seems.  Where as here there is a great will to share and distribute
knowledge... anyhow that is by the by. (but really appreciated!)

My problem is I can't find a good plug-in for Director that lets it export
images from shockwave files.  They are just 1bit images, so what I can do is
export them as a string of 0s and 1s.

Could I use zope or PYTHON to convert 25000 0s and 1s into an, er, a PNG
file I guess it would have to be.

note, I haven't ever written any python, though I here it is very lovely!

I guess Director would send it via post to a zope page which would then
process it and save a png file.

Am I optomistic?

josh on





___
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] saving files to zope

2000-06-13 Thread josh on

Hi,

I want to export images from a shockwave file and have them stored on my
computer and accessable by zope.

Can I just have the shockwave movie save files to say:

www.myzopeserver.com/savefileshere

where that folder has its permissions set such that anonymous can post a
file there?

or is it more complicated than that?

thanks josh on.





___
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] saving files to zope

2000-06-13 Thread josh on


Oh goodness, I fear that this isn't going to be anywhere near as easy as I
might have hoped!

Thanks for the good questions.

 Its not quite clear to me what you want to do...
 Which application/OS do you want to save it with?
 what _exactly_ do you want?

It is a macromedia director shockwave file, that exports a picture file to
my server Zope, zserver on win98.  The shockwave will be embedded in a
webpage served on a page served by zope in fact it is already there:

http://194.80.197.15:8080/sqladdaline/shockwave/index_dtml

Hit the enter button and it saves a file!  yeah right, hehe...

I have it so that it is supposed to save a file "test.jpeg"  hoping that it
would just save into that directory.

no luck... I am not sure whether the problem lies on the zope or Director
side of things.  The director file works locally but I have never had it
work as a shockwave file.

As for which of these protocols it would use, I am undure, the first I would
guess. however it would have to happen behind the scenes, and I would then
want to be able to refer to these files from zope.

 - http multipart file upload? - make yourself a file upload form (see
zope
 doc on how to do this)

 - ftp ? direct your ftp-client to port 8021 of you zope machine

 - http/webdav - direct your webdav-client to port 8080 of your machine
(if
 you're using zserver, port 80 if apache)

ok this sounds good too, perhaps this is what it is doing already?

 - filesystem (samba) ? - install product LocalFS and scan its
 documentation. it lets you use files in the server's filesystem from zope.

Thanks for your time,

josh on







___
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] dtmll-in variables

2000-06-08 Thread josh on

Hi,

 I am trying to only perform a task if there are less than a certain amount
of records returned by a query.

Jonothan gave me the variable name for the record count:

  is there an easy way to get a record count of total number of items or
  iterations returned by a dtml-in tag?

 dtml-var sequence-length
 --jfarr

But I am struggling to put that into an if statement:

dtml-in linescontributed
line:dtml-var contentbr
dtml-var sequence-lengthbr
dtml-if "sequence-length == 10"
WHOOP WHOOP
/dtml-if
/dtml-in

There are ten lines returned by this query but zope sees the line:

dtml-if "sequence-length == 10"

and thinks I am trying to say sequence minus length,
rather than refer to the dtml var sequence-length

Could anyone help me ut with this?

josh on

On another smaller note how do I write a greater than sign in this context?








___
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] stupid question I guess

2000-06-07 Thread josh on

but I can't find the answer...

can I set a local variable in zope on a dtml page
eg

dtml-var variablename = 1

thanks josh on


___
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] stupid question I guess

2000-06-07 Thread josh on

wow great answer, thanks that has just peeled off another layer of zope
mystery for me.

can this be put in the dynamic faq?

josh on


- Original Message -
From: Tony McDonald [EMAIL PROTECTED]
To: Zope List [EMAIL PROTECTED]
Sent: Wednesday, June 07, 2000 3:17 PM
Subject: Re: [Zope] stupid question I guess


 At 2:55 pm +0100 7/6/00, Chris Withers wrote:
 josh on wrote:
   can I set a local variable in zope on a dtml page
   dtml-var variablename = 1
 
 Yup:
 
 dtml-call "REQUEST.set('variablename',1)"
 
 Nice syntax, huh? ;-)
 
 Chris

 now now :)

 (tested)

 dtml-let variablename="1"
 blah blah blah ... ie the scope of the variable
 dtml-var variablename
 /dtml-let

 don't fall into the trap of doing this
 dtml-let variablename="I am a string"
 blah blah blah ... ie the scope of the variable
 dtml-var variablename
 /dtml-let

 'cos Zope won't let you enter it (it thinks that the 'I' is a
 variable name). Remember that anything in " " is evaluated as a
 Python expression...

 try this instead
 dtml-let variablename="'I am a string'"
 blah blah blah ... ie the scope of the variable
 dtml-var variablename
 /dtml-let

 You can have multiple variables set too...
 dtml-let variablename="'I am a string'" bloot="1"
 blah blah blah ... ie the scope of the variable
 dtml-var variablename :: dtml-var bloot
 /dtml-let

 See lib/python/DocumentTemplate/DT_Let.py for more details...

 hth
 tone


 --
 Dr Tony McDonald,  FMCC, Networked Learning Environments Project
 http://nle.ncl.ac.uk/
 The Medical School, Newcastle University Tel: +44 191 222 5888
 Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2

 ___
 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 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] Looking forward to a better future at prototype world

2000-06-06 Thread josh on


 This is REALLY cool.  I can't manage to login though.


oh thanks,

ok, that might be because you didn't put in a tagline or it had punctuation
that sql doesn't like.

If not that is bad.

I will try and sort this out it is a big bug!

thanks for the feedback.


___
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] Deleting folders from root

2000-06-06 Thread Josh Glover
When I try to delete a folder from the root of Zope, it does not allow
me to do so.  No error message, just displays the index_html method in
my browser window.  Same story if I attempt to rename them.  Any ideas? 

Thanks,
Josh Glover

___
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-dev] The future of Zope with XML( what does ZDOM do for us? )

2000-06-02 Thread Josh Zeidner


Hi Kevin,

  What FourThought/DC are currently doing with Zope will allow for fast 
transformations to memory-resident structured data( ZDOM or whatever ) to 
exportable XML documents( which are simply strings of characters ).  This 
introduces( to the Zope world ) cutting edge metaphors in web-application 
design.  All data to be served to a client is some form of XML: including 
HTML ( a better term: structured data ).  The internal structure, or 
representation( or "deep structure" if you are into Chomsky ),  is the 
data/knowledge as the web site managers see it- and most likely the most 
accurate and flexible when dealing with the particular information-domain( 
this is what theyre paid for :) ).  Each user has custom needs- and wants to 
see this information the way they( or the applications working on thier 
behalf ) are accustomed to.  So, architectually speaking, we need a way to 
easily and quickly construct XML documents from some meta-type( our internal 
structure ).  This is what ZDOM is accomplishing for us.

  Parsing is a expensive endeavor.  It is not practical to parse character 
streams every time we want to get at our data.  So the solution is to 
represent the data as something more computationally digestible.  Again : 
this is what ZDOM is accomplishing for us.

  Does this answer your question?

  have a good weekend,

  Josh Zeidner



-"zippa-dee-doo-da" , uncle remus

Hello,

 Thanks for getting this document going. It's good to see where XML is
going in Zope.

 I do have a question, though. For me, the main value in XML has been 
in
its usefulness as a flexible interchange format. Right now, I can store 
data
as objects (either straight Python or ZClasses) in Zope and transform those
into XML if I need to share it with the outside world (eg RSS). Similarly,
though I haven't done this, I believe I can take XML from the outside 
world,
parse it and store it in objects in the database. Are there advantages to
storing the data in Zope as XML vs. storing my data as objects?

Thanks,
Kevin

- Original Message -
From: Glenn Gasmen
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, June 01, 2000 11:05 PM
Subject: [Zope-dev] The future of Zope with XML


http://www.zope.org/Wikis/zope-xml/Unified%20Vision



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



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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




Re: [Zope-dev] The future of Zope with XML( XSLT revisited )

2000-06-02 Thread Josh Zeidner


Hi,

  It is great stuff! ( similar idea to Apache Cocoon )... now all we need is 
someone to put in an XSLT( 4XSLT ) processor into the core Zope code-  are 
there any immediate plans for this?  note: i realize this has been discussed 
before :) .

  -thanks, Josh Z



Hi, Josh

 Thanks for the insight! I also just noticed that there is a whole lot 
of
good information already up there in the Wiki. This does look like great
stuff. I see how it complements Zope's current data storage capabilities. 
It
provides good ways to move XML data in and out of the ZODB via XSLT and to
store and manipulate XML data efficiently using XML Documents. These are
excellent capabilities indeed.

 Have a great weekend!

Kevin

- Original Message -
From: "Josh Zeidner" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, June 02, 2000 10:54 AM
Subject: Re: [Zope-dev] The future of Zope with XML( what does ZDOM do for
us? )


 
  Hi Kevin,
 
What FourThought/DC are currently doing with Zope will allow for fast
  transformations to memory-resident structured data( ZDOM or whatever ) 
to
  exportable XML documents( which are simply strings of characters ).  
This
  introduces( to the Zope world ) cutting edge metaphors in 
web-application
  design.  All data to be served to a client is some form of XML: 
including
  HTML ( a better term: structured data ).  The internal structure, or
  representation( or "deep structure" if you are into Chomsky ),  is the
  data/knowledge as the web site managers see it- and most likely the most
  accurate and flexible when dealing with the particular
ormation-domain(
  this is what theyre paid for :) ).  Each user has custom needs- and 
wants to
  see this information the way they( or the applications working on thier
  behalf ) are accustomed to.  So, architectually speaking, we need a way 
to
  easily and quickly construct XML documents from some meta-type( our 
internal
  structure ).  This is what ZDOM is accomplishing for us.
 
Parsing is a expensive endeavor.  It is not practical to parse 
character
  streams every time we want to get at our data.  So the solution is to
  represent the data as something more computationally digestible.  Again 
:
  this is
what ZDOM is accomplishing for us.
 
Does this answer your question?
 
have a good weekend,
 
Josh Zeidner
 
 
 
  -"zippa-dee-doo-da" , uncle remus
 
  Hello,
  
   Thanks for getting this document going. It's good to see where XML
is
  going in Zope.
  
   I do have a question, though. For me, the main value in XML has 
been
  in
  its usefulness as a flexible interchange format. Right now, I can store
  data
  as objects (either straight Python or ZClasses) in Zope and transform
those
  into XML if I need to share it with the outside world (eg RSS).
Similarly,
  though I haven't done this, I believe I can take XML from the outside
  world,
  parse it and store it in objects in the database. Are there advantages 
to
  storing the data in Zope as XML vs. storing my data as objects?
  
  Thanks,
  Kevin
  
  - Original Message -
  From: Glenn Gasmen
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Thursday, June 01, 2000 11:05 PM
  Subject: [Zope-dev] The future of Zope with XML
  
  
  http://www.zope.org/Wikis/zope-xml/Unified%20Vision



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



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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




[Zope-dev] XPath and Aquisition Incompatible?

2000-06-02 Thread Josh Zeidner


hi,

  I was just looking over the Wiki on Zope XML, and came across the current 
notes on XPath.  I tend to think that XPath( which is a relative 
discripition of a tree traversal ), and Aquisition( which implies quite a 
bit based on where it gets executed )- may not be exactly compatible.  Has 
there been any discussion on this?

-Josh Z


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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




Re: [Zope] FYI: Documentation

2000-05-23 Thread Josh Robb

Can/Should/Will this documentation be avaliable on the Zope.org (or
zdp.zope.org) site.


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