[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

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

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

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

[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

Re: [Zope] Re: How can I get all roles defined

2007-03-22 Thread Josh Burvill
: 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

Re: [Zope] Legacy Perl code and Zope. A pipe dream?

2006-10-03 Thread Josh Burvill
://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

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

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

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

[Zope] LocalFS - user needs to be manager?

2006-09-20 Thread Josh Burvill
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

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

[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

Re: [Zope] Re: zwiki connection error

2006-06-09 Thread Josh Stephenson
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

[Zope] zwiki connection error

2006-06-08 Thread Josh Stephenson
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

Re: [Zope] psycopgda

2006-05-08 Thread Josh Stephenson
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

[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

[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

Re: [Zope] with a variable

2001-01-12 Thread josh on
T.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

Re: [Zope] with a variable

2001-01-12 Thread josh on
he 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 l

Re: [Zope] with a variable

2001-01-12 Thread josh on
ness, 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.

[Zope] with a variable

2001-01-11 Thread josh on
t; 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 appreci

Re: [Zope-dev] more on keyword indexes

2000-12-18 Thread Josh Zeidner
t 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 e

[Zope-dev] keyword indexes

2000-12-14 Thread Josh Zeidner
)" 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

[Zope-dev] more on keyword indexes

2000-12-14 Thread Josh Zeidner
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

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

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

[Zope] updating the catalog - successfully!

2000-12-11 Thread josh on
ex_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 re

[Zope] zcatalog, zclass instances

2000-12-09 Thread josh on
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

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

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

[Zope] user permissions

2000-07-24 Thread josh on
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

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

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

2000-06-21 Thread Josh Zeidner
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

[Zope] scared

2000-06-20 Thread josh on
ay 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] h

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

Re: [Zope] scared

2000-06-20 Thread josh on
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

Re: [Zope] scared

2000-06-20 Thread josh on
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

[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

[Zope] compiling images

2000-06-14 Thread josh on
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

[Zope] saving files to zope

2000-06-13 Thread josh on
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

Re: [Zope] saving files to zope

2000-06-13 Thread josh on
ct 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 HTM

Re: [Zope] dtmll-in variables

2000-06-08 Thread josh on
ine: 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

[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

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

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

Re: [Zope-dev] The future of Zope with XML( what does ZDOM do for us? )

2000-06-02 Thread Josh Zeidner
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

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

[Zope-dev] XPath and Aquisition Incompatible?

2000-06-02 Thread Josh Zeidner
. 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

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 -