[Zope-dev] Re: KeyError in ZRDB.DA cache handling

2008-01-15 Thread J Cameron Cooper
Chris Withers wrote: Hi there, J Cameron Cooper wrote: but we have that fix in our Zope 2.9.8: http://osdir.com/ml/web.zope.all-cvs/2006-11/msg00150.html Are you absolutely sure you're using a version of Zope with my patches included? Yes; I've checked both version (this went

[Zope-dev] KeyError in ZRDB.DA cache handling

2008-01-04 Thread J Cameron Cooper
On our fairly busy site (http://cnx.org) we're seeing in the logs some instances of an error in Shared.DC.ZRDB.DA:: ... Module None, line 97, in search_form_handler - FSPythonScript at /plone/search_form_handler used for /plone/content - Line 97 Module

[Zope] Re: Help with DateTime.earliestTime()

2007-08-27 Thread J Cameron Cooper
Maurits van Rees wrote: Eric, on 2007-08-26: To work around this, I've modified the addition so that instead of adding 1 day, it adds 1.5 days. This extra half a day is removed by the theDateTime.earliestTime() call but is enough to overcome the DST addition problem. Ugly hack. I had the

[Zope] Re: AttributeError: _get_filename

2007-08-09 Thread J Cameron Cooper
Garito wrote: Hi! I try to use Photo Folder 1.3.1 on a Zope 2.9.6 but when I try to upload a photo Zope raise's this error: Traceback (innermost last): Module ZPublisher.Publish, line 115, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 41, in

[Zope] Re: Declare constructor as public

2007-07-24 Thread J Cameron Cooper
Garito wrote: Hi Andrew! In a normal method inside the product's class I use this: security = ClassSecurityInfo() security.setPermissionDefault('Freemind', ('Manager', 'Developer')) security.declareProtected ('Freemind', 'freemind') But outside the class I have no idea how to create security

[Zope] Re: Problem w/ ZMySQLDA

2007-07-16 Thread J Cameron Cooper
[EMAIL PROTECTED] wrote: Forgive my ignorance, but not quite sure how to do that. Nonetheless... 1) There was no problem with any of this on the old server until the server crashed. 2) My backups were taken from a time when the old server was was working fine. 3) This problem occurs with

[Zope] Re: 2.6 to 2.10 migration: RuntimeError: maximum recursion depth exceeded

2007-07-12 Thread J Cameron Cooper
Jonas Meurer wrote: On 12/07/2007 Andreas Jung wrote: after importing a product from zope 2.6.4 to a 2.10.3 instance, trying to open the product produces quite a lot of errors in my event.log, and a traceback in the zope management interface. Importing as zexp? If yes, this is unsupported.

[Zope] Re: catching shorter URLs

2007-07-09 Thread J Cameron Cooper
Aaron Maupin wrote: I'm trying to make pretty URLs for a game site I'm developing, and due to the hosting environment I'm somewhat limited in my Apache URL rewrites. (I've tried the normal mod_proxy / mod_rewrite rules and they haven't worked in this environment.) I'd like the visitors to

[Zope] Re: how to restore a copied instance.

2007-06-26 Thread J Cameron Cooper
Tudor Gabriel wrote: hi, i needed to reinstall my zope site on another computer so i installed (in debian) plone-site using aptitude ... it automatically makes a new instance and starts the server. after that i stopped the server ... and copied my site (instance folder) from the other

[Zope-PAS] Re: authentication via web services

2007-06-22 Thread J Cameron Cooper
Miles wrote: Hi, Has anyone used PAS to authenticate and get properties from a web service? We have a requirement for this in a project, but given the current general state of SOAP support in python, I'm not very clear on what the best solution might be on this. If anyone has any

[Zope] Re: Several questions on Z3 Views backported thru Five

2007-06-22 Thread J Cameron Cooper
Manuel Vázquez Acosta wrote: Hi all, I've been asked to deploy a Plone App which must satisfy a load of at least 1200 users over 8 min. I have tested a fresh Plone 2.5.3 with Zope 2.9.7, plus Squid + CacheFu and everything went just fine. The laptop didn't even notice such a load. But, when I

[Zope] Re: 2.9.7 build fails: 'build/lib/linux-i686-2/5/pytz/zoneinfo/Antarctica' does not exist

2007-06-13 Thread J Cameron Cooper
Mikko Ohtamaa wrote: Hi, I am trying to build Zope 2.9.7 on Ubuntu Feisty Fawn 7.04. I am probably enjoying some sort of configuration error. Though I have installed python-tz package, the installer barks about missing 'Antarctica'. I haven't seen this error with previous Zope builds. [EMAIL

Re: [Zope] Zope product update question

2006-04-20 Thread J Cameron Cooper
Cyrille Bonnet wrote: I have a question regarding product update. I have updated a product (ATContentTypes) on the file system. Upon restarting the server, the new version of the product appears in red in the QuickInstaller (as expected). Even though I haven't re-installed the product,

Re: [Zope] same object in different containers

2006-04-11 Thread J Cameron Cooper
gf wrote: Hi, I am interested in having the same object appear as the child of two different containers. These containers may distant from each other in the object hierarchy. In particular, I autogenerate a list of subtopics (child folders) for several areas of my website, but would like a

Re: [Zope] calling a product with xmlrpc

2006-04-11 Thread J Cameron Cooper
Reinoud van Leeuwen wrote: On Tue, Apr 11, 2006 at 01:43:22PM -0500, Floyd May wrote: Paul Winkler wrote: On Tue, Apr 11, 2006 at 05:54:35PM +0200, Reinoud van Leeuwen wrote: [...] This however generates a NotFound Exception :-( I'm not sure why you get NotFound, but one thing I spotted

Re: [Zope] How to do this trick..

2006-03-27 Thread J Cameron Cooper
Jason C. Leach wrote: I'm wondering how I can do this little trick (sp_info is a globaly devide var, it's a dictionary obj): option tal:repeat=group groups/existing/high tal:content=group tal:attributes=onmouseover string:doTooltip(event,

Re: [Zope] Zope Managed Server

2006-03-11 Thread J Cameron Cooper
Dan Gaibel wrote: Hello Folks, I'm interested in finding a company that will do monthly managed zope hosting. We're looking for a dedicated machine. I know that Zope Corp does this and it is quite expensive. I wonder if anyone has had any experiences with such a service. Any advice is highly

Re: [Zope] Re: Advice needed before settling on Zope

2006-03-06 Thread J Cameron Cooper
Lennart Regebro wrote: On 3/6/06, Rainsford, David [EMAIL PROTECTED] wrote: I never said thanks to all you guys for your advice - it all came in very useful. In the end though, I have decided to go with another system, Knowledge Tree. The reason is that a) it's written in PHP, and all of

Re: [Zope] TAL tutorial

2006-03-06 Thread J Cameron Cooper
John Poltorak wrote: Can anyone point me to a good TAL tutorial for people who have difficulty getting to grips with it? http://www.zope.org/Documentation/Articles --jcc -- Building Websites with Plone http://plonebook.packtpub.com ___

Re: [Zope] how can i the height of a image

2006-02-25 Thread J Cameron Cooper
Alain Barbason wrote: hi, in a file index_html, I search to have the height of a image, but this, is in a subdirectroy called images After a request of a database, I have the name of the image in a variable nom if I write dtml-var expr='images.'+nom+'.height' the result is

Re: [Zope] want to use external script to read a text-file and image in database and modify REQUEST

2006-02-25 Thread J Cameron Cooper
Allen Huang wrote: Hi I want to use external methods to read a text file and image in database and modify the REQUEST my code looks like this varible --- def imageSetup(self, imageID, dataID, REQUEST): import PIL.Image from StringIO import StringIO # Get

Re: [Zope] Can Zope 2.9 Coexist With Zope 2.6 Using Different Ports?

2006-02-22 Thread J Cameron Cooper
Mark, Jonathan (Integic) wrote: My website GoodbyeJim.com currently runs Zope 2.6 on Red Hat 7.3. I have installed Zope 2.9 to use port 3200 instead of 80. Does Zope 2 support running two separate instances of two versions of Zope on different ports? I have been able to run Zope 3

Re: [Zope] about zope and mouse event handling

2006-02-10 Thread J Cameron Cooper
Floyd May wrote: On 2/10/06, Tino Wildenhain [EMAIL PROTECTED] wrote: ... maybe if there is a chapter about image manipulation on the fly with PIL (python imaging lib) I believe that Plone (or Plohn as it seems to be called by Zope people ;-) ) If by Zope people you mean Chris Withers.

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

2006-02-10 Thread J Cameron Cooper
michael nt milne wrote: Well I said it was over and out but I have to respond to this latest post. I appreciate the help here and will be trying out some of the suggestions. Basically though, Zope permissions and security could be made a lot more usable. It's far too technically focused and

Re: [Zope] Help with a simple DMS

2006-02-07 Thread J Cameron Cooper
Joshua Gilbert wrote: Hi. I'd like to make a simple DMS, users upload their PDFs/docs/ps/whatever and then they can search within the documents. I believe TextIndexNG will index contents of complex file types. I need to be able to automate the submission of documents as I'm part of a large

Re: [Zope] Help with a simple DMS

2006-02-07 Thread J Cameron Cooper
Joshua Gilbert wrote: On 2/7/06, J Cameron Cooper [EMAIL PROTECTED] wrote: Joshua Gilbert wrote: Hi. I'd like to make a simple DMS, users upload their PDFs/docs/ps/whatever and then they can search within the documents. I believe TextIndexNG will index contents of complex file types. OK

Re: [Zope] zodb queries, importing and exporting

2006-01-25 Thread J Cameron Cooper
Jonathan wrote: Not a zope question, but... why don't you create a mutually agreed upon XML DTD (document type definition) that represents the content of a database record. Then each party can implement the XML data extraction/upload to their own db technology as they please. Each db

Re: [Zope] Can one nest macros with slots?

2006-01-25 Thread J Cameron Cooper
Doyon, Jean-Francois wrote: I can't seem to do this: use-macro fill-slot define-macro ... Some html ... define-slot/define-slot ... Some html ... /define-macro /fill-slot /use-macro Allowing me to nest multiple reusable templates? I have objects with common

[Fwd: Re: [Zope] Structured Text Question]

2006-01-25 Thread J Cameron Cooper
Asad Habib wrote: Well, this decision was not made by me and I cannot override it. Given that I have to use Structured Text, is there a solution to this problem? You can always write HTML in STX. Just say:: br / Or maybe:: p/p I would suggest, however, not setting a solution in stone

Re: [Zope] TinyMCE

2006-01-24 Thread J Cameron Cooper
Garito wrote: Chris Withers escribió: Garito wrote: Don't like kupu because is very difficult to install and very very difficult to use I find that a suprising statement... What problems did you experience? cheers, Chris Hi, Chris! I ask to the list some months ago but no solution

Re: [Zope] returning list from PythonScript

2006-01-20 Thread J Cameron Cooper
Slobodan Jovcic wrote: Hi, I'm trying to pass a list of values between the script and external method. ZPT contains the following: tal:block tal:define=whatever python: container.myExtMethod ( container.myScript() ) / container.myScript() is a Python Script that returns a list of values.

Re: [Zope] Newbee interfaces and implementations

2006-01-19 Thread J Cameron Cooper
Roman Klesel wrote: bruno modulix schrieb: So you recommend that I should just skip them as long as I'm on Zope2? Short answer : yes. Unless you plan to switch to Zope3 really soon, but then, I'd recommand that you skip Zope 2.x !-) No, I'll be with Zope2 for a while. I'm running an

Re: [Zope] problems displaying radio buttons in plone

2006-01-12 Thread J Cameron Cooper
Jon Savian wrote: Hi guys, i am using plone 2.1.3 and i am having some trouble displaying radio buttons. I am doing a normal html form forminptut type=radio etc However they do not display on the page. Any ideas? What do you mean by doing? Plone doesn't by default allow things

Re: [Zope] newbie dtml-in question objectValues

2006-01-11 Thread J Cameron Cooper
Alric Aneron wrote: Hello, I am trying to find how to get the relative path of an object. If i do: dtml-in objectValues('DTML Document') dtml-var URLPATH0 /dtml-in URLPATH0 does not give me the relative path of the objects interated, but rather the path of the object doing the iterating

Re: [Zope] Where oh where is Repozo

2006-01-11 Thread J Cameron Cooper
Jonathan Cyr wrote: Um, Where is the latest version of Repozo, the backup tool, kept? Is there a reason, that it's not included with the Zope install/utilities (at least the 2.7.x I'm using). I confess, I've been stopping my zope, and tar'ing the directories so now I want to clean up

Re: [Zope] RE: Java vs Zope

2006-01-03 Thread J Cameron Cooper
Sam Stainsby wrote: One thing is static type checking: developers detecting type errors at compile time, rather than some hapless user running into it at run time (i.e. after release to the public). I see many of those types of errors in Zope and Plone products, particularly as the API of one

Re: [Zope] Please help with DTML-in (newbie)

2005-12-28 Thread J Cameron Cooper
Alric Aneron wrote: Hello, I am new to Zope and DTML. I am trying to use a python script to call a Z SQL method. The python script also has a list that dtml-in inside the ZSQL method interates over. so my python script: -python script words = ['one', 'two']

Re: [Zope-dev] [RfC] Removal of old stuff in Zope 2.10

2005-12-22 Thread J Cameron Cooper
Dario Lopez-Kästen wrote: Chris Withers wrote: Andreas Jung wrote: I've never met ppl who actually used the HelpSys so that's why I am raising the question about the value of the HelpSys. Lots of my co-workers work with Zope on different levels (scripters, product developers)...I've

Re: [Zope-dev] [RfC] Removal of old stuff in Zope 2.10

2005-12-22 Thread J Cameron Cooper
Dario Lopez-Kästen wrote: Chris Withers wrote: Andreas Jung wrote: I've never met ppl who actually used the HelpSys so that's why I am raising the question about the value of the HelpSys. Lots of my co-workers work with Zope on different levels (scripters, product developers)...I've

Re: [Zope] ZSQL with different user

2005-12-20 Thread J Cameron Cooper
Pier Luigi Fiorini wrote: Alle 18:42, lunedì 19 dicembre 2005, hai scritto: Pier Luigi Fiorini wrote: Hello, I'm developing a Zope application that uses a PostgreSQL connection and several ZSQL objects. People should log in using a Postgres user and ZSQL object should be executed by the user

Re: [Zope] using tal macros in PloneArticle query

2005-12-16 Thread J Cameron Cooper
Stefan Kueppers wrote: I am trying to use tal and metal inside of a PloneArticle instance and can not get it to work. Should this not be possible? Content is generally static, as part of the whole content/logic/presentation concept. I don't know about PloneArticle, but I doubt it's any

Re: [Zope] Trapping zope exceptions in python script

2005-12-15 Thread J Cameron Cooper
Jonathan wrote: Andreas wrote: My 2 cents: PythonScripts are restricted and are *not* thought to be a full replacement for Python modules. If you need this functionaltiy consider writing a Zope Product, using external methods or using TrustedExecutables. If python scripts are restricted

Re: [Zope] batching help

2005-12-15 Thread J Cameron Cooper
Nicolas Georgakopoulos wrote: Dragos Chirila wrote: Hi I suggest to use the following function that def get_grouped_list(self, seq=[], size=3): #get the list with all items grouped return [seq[i:i+size] for i in range(0, len(seq), size)] that takes as parameter a list and goups

Re: [Zope] Re: [Zope-dev] user folder question

2005-12-15 Thread J Cameron Cooper
On 15 Dec 2005, at 16:58, Chris Cole wrote: I'm currently trying to setup a custom zope instance for our c.s. department at school. Currently we run a totally linux infrastructure with ldap authentication which we would also like to tie into zope. My question is not how to authenticate against

Re: [Zope] Trapping zope exceptions in python script

2005-12-14 Thread J Cameron Cooper
Jonathan wrote: Thanks to everyone for the feedback... the bottom line seems to be that you can NOT trap zope exceptions in a python script... which seems a bit odd. Of course you can. You just are restricted from importing certain things, which happens to include this class of exception.

Re: [Zope] Recursive Display Of All Folder Items

2005-12-13 Thread J Cameron Cooper
Francisco Chamorro wrote: Hi everyone, I am trying to get a dump of all the content currently in our zope server. Using DTML I was able to get the top level folders to display their content but I am unable to recursively display the contents of the sub-folders. This is the code I am using

Re: [Zope] Zope and Image display

2005-12-13 Thread J Cameron Cooper
tyson wrote: Hi- I have a dtml form that loads a binary image from a python script. This works fine with no problems, but I want to return the image and also some other data as well. The only thing is when I return the information in the form of a list, my image won't load. I think that

Re: [Zope] zope and LDAP for authorisation

2005-12-13 Thread J Cameron Cooper
Marinussen, M.J. (Ria) wrote: Hi, I'm looking for a zope product that enables me to use our Active Directory LDAP server for verification of login credentials only. I want users still stored in Zope, and access to directories should be also something I can handle in Zope, and I don't want to

Re: [Zope] checking for elements in a list

2005-12-03 Thread J Cameron Cooper
Christopher Rivard wrote: Hello, I'm am trying to check for the membership of items in a list and think I'm missing something. How is this done in dtml? List allids: [15,16,17,18] Check for multiple items in the list: dtml-in allids prefix=loop dtml-if expr=loop_item == 17 something

Re: [Zope] Creating a DTM Document in a variable folder.

2005-11-30 Thread J Cameron Cooper
Jonathan Cyr wrote: You might want to use index_html rather than index.html in this example. The dot means other things in Python, and index.html is a carryover from filesystem webservers. My impression is that the acquisition mechanism doesn't like ids with a dot, in some circumstances.

[Zope-PAS] Five interfaces

2005-11-17 Thread J Cameron Cooper
The trunk currently says in PluggableAuthService.py:: try: from OFS.interfaces import IObjectManager from OFS.interfaces import ISimpleItem from OFS.interfaces import IPropertyManager except ImportError: # BBB from Products.Five.interfaces import IObjectManager from

Re: [Zope] Passing Parameters to External Methods

2005-11-16 Thread J Cameron Cooper
Asad Habib wrote: Hello. I am trying to use the Python version of the PHP script written by Jason Rust called 'HTML_ToPDF.php'. I have represented this script using an External Method since it uses functions, such as open, which cannot be used in Zope Python scripts for security reasons. The

Re: [Zope] Passing Parameters to External Methods

2005-11-16 Thread J Cameron Cooper
:: context.createHtmlToPdf(in_htmlFile, in_domain, in_pdfFile) Python ends up calling this method/function something like:: createHtmlToPdf(context, in_htmlFile, in_domain, in_pdfFile) Your message signature must agree. --jcc On Wed, 16 Nov 2005, J Cameron Cooper wrote: Asad Habib

Re: [Zope] Passing Parameters to External Methods

2005-11-16 Thread J Cameron Cooper
Paul Winkler wrote: On Wed, Nov 16, 2005 at 11:26:10AM -0600, J Cameron Cooper wrote: Asad Habib wrote: Hi Cameron. You are right but the self parameter is implicitly passed. It is implicitly passed, but must be explicitly defined:: def createHtmlToPdf(self, in_htmlFile, in_domain

Re: [Zope] export/import problems with plone site

2005-11-14 Thread J Cameron Cooper
Faheem Mitha wrote: I successfully exported/imported a Plone site from one Zope instance to another. However, when I try to publish the Plone page, I experience an error. Does anyone know what the problem is here, or what to look for? Is this perhaps a more Plone speciific problem?

Re: [Zope] Re: zope 2.8.4 on windows 98

2005-11-14 Thread J Cameron Cooper
Fernando Martins wrote: Andreas Jung wrote: On Sat, 12 Nov 2005 03:52:28 -0800, Fernando Martins fernando at cmartins.demon.nl wrote: I understand the problem, but is it the intention that zope is not supported on win98? Yes, I believe this is intentional. Windows 98 is a seven year old

Re: [Zope] sql access style

2005-11-04 Thread J Cameron Cooper
Vlada Macek wrote: I'm about to create a Zope (Plone, in fact) application, as a Package, that will operate on data accessible via SQL (Firebird RDBMS). I'm ordered the data must stay in SQL storage, not in ZODB. Recently I found, outside of Zope, that using python-kinterbasdb module is very

Re: [Zope] question about stopping acquisition in VHM sites?

2005-10-27 Thread J Cameron Cooper
Gary wrote: Hi, How do I stop acquisition at the root of my website? If I have two websites in zope, and I set the virtual host mapping to www.sitea.com/websites/SiteA http://www.sitea.com/websites/SiteA www.siteb.com/websites/SiteB http://www.siteb.com/websites/SiteB I don't want my users to

Re: [Zope] Debugging security settings in .metadata files

2005-10-27 Thread J Cameron Cooper
Floyd May wrote: I have a set of files - page templates, python scripts, and zsql methods - that are set up as filesystem objects. I'm having trouble getting the security set the way I want it to be with the .metadata files. Here is the content of my .metadata files:

Re: [Zope] Debugging security settings in .metadata files

2005-10-27 Thread J Cameron Cooper
(or at least, these don't). Should one be there? Hm. Seems they don't. Customize it and look at the security tab of that. --jcc On 10/27/05, J Cameron Cooper [EMAIL PROTECTED] wrote: Floyd May wrote: I have a set of files - page templates, python scripts, and zsql methods

Re: [Zope] Zope/Editor problems

2005-10-26 Thread J Cameron Cooper
Lennart Regebro wrote: On 10/26/05, Håkan Johansson [EMAIL PROTECTED] wrote: On Oct 26, 2005, at 17:00, Lennart Regebro wrote: On 10/26/05, Håkan Johansson [EMAIL PROTECTED] wrote: My personal guess is that both Epoz and Kupu has hidden prereqs that the documentation does not say, or that

Re: [Zope] database connections from external method

2005-10-19 Thread J Cameron Cooper
Vangelis Mihalopoulos wrote: Tino Wildenhain wrote: The threading is handled by the ZDA, so you can use query() or what the method actually is. I couldn't find a method like that... any hints? It is indeed the 'query' method, which you pass a string with SQL. It comes from

Re: [Zope] __getitem__ and returning a PageTemplateFile instance

2005-10-18 Thread J Cameron Cooper
Anders Bruun Olsen wrote: On Sun, Oct 16, 2005 at 06:50:09PM +0200, Dieter Maurer wrote: I am trying to make a product where-in I want to be able to return a page based on the url, think something like /product/username which would return a page with the users details. For this purpose I am

Re: [Zope] __getitem__ and returning a PageTemplateFile instance

2005-10-18 Thread J Cameron Cooper
Anders Bruun Olsen wrote: On Tue, Oct 18, 2005 at 03:30:42PM -0500, J Cameron Cooper wrote: error_log is by default set to ignore three common types of exceptions. You should remove NotFound from the list if you're getting NotFound exceptions and want to see them. Ahhh.. Thanks, now I have

Re: [Zope] Zope 2.7.8 or Zope 2.8.X

2005-10-13 Thread J Cameron Cooper
Dennis Allison wrote: We have been running on Zope 2.7.6 with a few patches. I am now planning to migrate to Zope 2.7.8 but am pondering the move to Zope 2.8. We are in a production situation and cannot accept any downtime, so I am very concerned about stability and compatibility. Can the

Re: [Zope] selected in select lists

2005-10-12 Thread J Cameron Cooper
Garry Saddington wrote: I have a variable called 'groupabbrev' in the REQUEST. I am trying to automatically select an option in a select list based on this variable. I have tried this code and many others, and many googles but have not found anything that works. Can anyone see what I am doing

Re: [Zope] selected in select lists

2005-10-12 Thread J Cameron Cooper
Garry Saddington wrote: J Cameron Cooper wrote: Garry Saddington wrote: I have a variable called 'groupabbrev' in the REQUEST. I am trying to automatically select an option in a select list based on this variable. I have tried this code and many others, and many googles but have not found

Re: [Zope] selected in select lists

2005-10-12 Thread J Cameron Cooper
Garry Saddington wrote: Nicolas Gouzy wrote: I think this code works : select name=groupabbrev dtml-in getpastoralgroups option value=dtml-var expr=_['sequence-item'] dtml-if expr=groupabbrev==_['sequence-item'] selected/dtml-if dtml-var expr=_['sequence-item']/option /dtml-in /select --

Re: [Zope] Re: DTML-tree Custom sort

2005-10-05 Thread J Cameron Cooper
Chris Beaven wrote: It's really more a cool way to do lists than if statements :) It's technically list comprehension. Sort of a one-line list transform tool. I recommend reading through some of Dive Into Python (http://diveintopython.org/) for lots more cool hands-on tips on Python

Re: [Zope] emergency access problems

2005-09-29 Thread J Cameron Cooper
michael nt milne wrote: Hi I appear to be having difficulty logging into the ZMI using the password created on install. I did change some settings to my root login using the Samplex member product etc but didn't change the password, login etc. Anyway I've followed all the instructions in

Re: [Zope] Zope scalability / efficiency question

2005-09-20 Thread J Cameron Cooper
mark hellewell wrote: Hi everyone, I've got a question I'd really appreciate some input on. If I'm running perhaps a dozen Zope sites, experiencing anywhere between several hits per second to a lot less, would it potentially be more efficient (decreased latency etc.) to run each site as its own

Re: [Zope] How to show field names from sql query?

2005-09-20 Thread J Cameron Cooper
Thomas Apostolou wrote: Hello all, i use the following to get to show the results from an sql query. What are the expresions to show the field names? table dtml-in expr=TestODBCEM(sysDSN=sysDSN, usr=usr, mypass=mypass, sSQL=sSQL) dtml-if sequence-even tr bgcolor=lightgreen

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread J Cameron Cooper
Kirk Strauser wrote: On Friday 09 September 2005 10:25, Paul Winkler wrote: To be honest, I'd expect something a little different, namely that each instance would automatically pull in all the products in the site installation (like [1] and [2] above), but that doesn't seem to be the case. Is

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread J Cameron Cooper
Kirk Strauser wrote: On Friday 09 September 2005 13:56, J Cameron Cooper wrote: I don't know why, either. That simply says that there is a default Products directory ($SOFTWARE_HOME/lib/python/Products), you can't get rid of it, and you shouldn't try to configure it here. The problem I'm

Re: [Zope] Same product in multiple instances automatically?

2005-09-09 Thread J Cameron Cooper
Kirk Strauser wrote: On Friday 09 September 2005 15:37, J Cameron Cooper wrote: Anything in $SOFTWARE_HOME/lib/python/Products is available in any instances that use that SOFTWARE_HOME. You can see this quite easily by looking at the /Control_Panel/Products of an instance with nothing in its

Re: [Zope] Zope scalabilty and problems

2005-08-31 Thread J Cameron Cooper
Kennamore, Matthew G [NTK] wrote: Here is our situation, we originally launched zope with a small user base in mind and like most IT implementations it got away from us quickly and we have over 1000 users now. We are experiencing huge slowdowns and lots of complaints of performance. Let me

Re: [Zope] SQL Problem

2005-08-25 Thread J Cameron Cooper
Philip Beardmore wrote: I'm having a really annoying SQL problem which I think (or hope) can easily be sorted but I'm not sure how to do it. I have a ZPT which is collecting data in a form - Both text boxes and checkboxes. The form then passes the variables on to a DTML Method which does a few

Re: [Zope] max 2 levels of indirection?

2005-08-22 Thread J Cameron Cooper
Sean Dunn wrote: I’m running Zope 2.0.7, and I’m having a problem.. Consider me a newbie, as I’ve only been using Zope for a few weeks. After boiling the problem down to a test case, it seemed that I couldn’t have a DTML method call a DTML method which then calls a Python script. But then I

Re: [Zope] Re: dtml-var variable from REQUEST not shown in input tag if it has spaces??

2005-08-12 Thread J Cameron Cooper
Josef Meile wrote: Hi Thomas, When i just use it as dtml-var sSQL everything is ok. When i use it like : input type=text value=dtml-var sSQL, i get everything until the first space. For example from select * from mytable i get select. I'm not sure, but don't you need to enclose it with

Re: [Zope] Re: localhost:8080 not found on windows

2005-08-09 Thread J Cameron Cooper
michael nt milne wrote: Ok, thanks. Yes, Apache would be much better to route traffic through. And also it looks like a complete pain to try and route traffic through IIS. That's my understanding. You can either look up the ASP404 hack or use something like

Re: [Zope] rendering the contents of ..

2005-08-03 Thread J Cameron Cooper
David Bear wrote: On 8/1/05, J Cameron Cooper [EMAIL PROTECTED] wrote: David Bear wrote: I am looking at a couple way of producing a qotd solution. one way is to put quotes in a folder. Then use objectvalues on the folder and randomly select one of the items. I get get the objectid. but I

Re: [Zope] rendering the contents of ..

2005-08-01 Thread J Cameron Cooper
David Bear wrote: I am looking at a couple way of producing a qotd solution. one way is to put quotes in a folder. Then use objectvalues on the folder and randomly select one of the items. I get get the objectid. but I don't know what I use to get the 'content' of the object.. what is the

Re: [Zope] product organization

2005-07-27 Thread J Cameron Cooper
Nicholas Wieland wrote: As usual, my question is rather simple :) I'd like to know what are the best practices for product organization - for example I have _tons_ of queries to sqlserver, and my main class is becoming less manageble every time I look at it :/ I like the way SQL integrates in

[Zope-PAS] auth fallback with cookies

2005-07-26 Thread J Cameron Cooper
Say I have a user in a root acl_users folder (call it 'admin'). I also have a PAS user folder in a sub-object of the root. This PAS is configured to do cookie auth, and users will typically login using a form. Now, if I try to log in as 'admin' in that form, it doesn't work. I think this is

Re: [Zope] getting atachments with python - pop3

2005-07-25 Thread J Cameron Cooper
Jonathan Salazar Santos wrote: Hi, im making a email client in python for zope, but a im stopped because i cant find the way to get the attacments with python, do you have a idea how can i do this?, i have studied the email package already but is a little confused. A Python-specific list might

Re: [Zope-dev] Re: Listing a groups users via Python and portal_groups

2005-07-22 Thread J Cameron Cooper
Hitesh Shetty wrote: Im trying to implement a file system in the process i came accross Zope and ZODB however i cant figure out where to start since its important to study ZODB's architecture regards http://www.zope.org/Documentation/Articles Specifically

Re: [Zope-dev] Listing a groups users via Python and portal_groups

2005-07-21 Thread J Cameron Cooper
Takahashi, Michael wrote: I’m trying to work on a function call using Python that will list the users of any specified group using the function portal_groups. I’ve been able to successfully do this the opposite way by getting the users groups via portal_membership:

Re: [Zope-dev] Listing a groups users via Python and portal_groups

2005-07-21 Thread J Cameron Cooper
the methods from the group tools. Like the ones I mentioned by name. One of them even does exactly what you want:: context.portal_groups.getGroupById('group1').getGroupMemberIds() --jcc -Original Message- From: J Cameron Cooper [mailto:[EMAIL PROTECTED] Sent: Thursday

Re: [Zope] ZPyIRC and Zope 2.7

2005-07-21 Thread J Cameron Cooper
David wrote: Hi I installed ZPyIRC version 0.1.3 in Zope 2.7.5 and I get Zope Template Errors on two of the frames when trying to start a chat client. I don't know ZTP very well. (Python is 2.3.5) I was hoping that maybe somebody has fixed the templates for 2.7. Any help very welcome!

Re: [Zope] Passing a variable to RESPONSE.redirect

2005-07-15 Thread J Cameron Cooper
Asad Habib wrote: Is it possible to pass a variable to RESPONSE.redirect or does the page name have to be a literal string? I was unable to pass in a variable via the REQUEST object (i.e. REQUEST.get('pageName')) or the SESSION attribute of the REQUEST object (i.e.

Re: [Zope] How to upload a file and save it in a physical path

2005-07-15 Thread J Cameron Cooper
Remy Pinsonnault wrote: Maybe it is a basic question but how can I upload a file and save it anywhere on the server's hard drive? I know how to upload a file to zope's database but not how to save it locally... Anyone can help please? There are several products to do this: LocalFS,

Re: [Zope] Zope update

2005-07-13 Thread J Cameron Cooper
Josef Burger wrote: Hi, I want to update from Zope 2.7.4 to Zope 2.7.6 What is the easiest way? Unfortunately there is no description of how an update of Zope is done. I'm running Plone on it. I tried to newly install Zope 2.7.6 and then copied the backed-up Data.fs file and the content of

Re: [Zope] Re: [ZPT] Recursive structures

2005-07-01 Thread J Cameron Cooper
Nikko Wolf wrote: Ian Bicking wrote: I'm surprised this has never come up for me before, but now I want to render a recursive data structure and I'm at a loss how I might do that in ZPT. Or, what the best workaround would be. E.g.: ['a', 'b', ['c', ['d', 'e']]] Becomes: ul lia/li

Re: [Zope] Sequencing pages

2005-06-29 Thread J Cameron Cooper
John Poltorak wrote: On Tue, Jun 28, 2005 at 03:45:01PM -0500, J Cameron Cooper wrote: John Poltorak wrote: If I create individual pages for a website as sub folders of a sites main folder, how do I control the sequence of pages if I automatically generate a set of links to all the folders

Re: [Zope] TAL and Javascript

2005-06-29 Thread J Cameron Cooper
Rob Boyd wrote: I'm stuck this, and would appreciate help or pointers. I have a form with 2 selection drop-downs. I want the user's choice of select 1 to drive the options displayed in select 2. When the user makes a selection in select 1, onChange calls a Javascript function that should write

Re: [Zope] TAL and Javascript

2005-06-29 Thread J Cameron Cooper
Rob Boyd wrote: Thanks to all the responders. It gave me some ideas, but alas no luck. To clarify, I am not trying to do everything in one request. Request one generates the page, a user event (selecting an option from a form) fires another request via javascript. I do not see it creating

Re: [Zope] Tweaking Zope DB- and connection parameters

2005-06-28 Thread J Cameron Cooper
Apache is set to MaxClients 50 Zope.conf has set zserver-threads 5 and zodb_db main cache-size 500 pool-size 25 ... /zodb_db I will note that a cache-size of 500 is ridiculously low. (Even though old versions of Zope shipped configured like this!) It needs to be at least 5000. Frankly,

Re: [Zope] loading an url from a restricted python script

2005-06-28 Thread J Cameron Cooper
santiago wrote: I don't understand still : what I am looking for is a way to read a url whitout having to write an external method. the point is I belived that reading a url in a web application like zope should not require such powerfull tool as external methods or dedicated products.. There

Re: [Zope] Sequencing pages

2005-06-28 Thread J Cameron Cooper
John Poltorak wrote: If I create individual pages for a website as sub folders of a sites main folder, how do I control the sequence of pages if I automatically generate a set of links to all the folders? I presume that under normal circumstances that sequence would be in alphabetical order of

Re: [Zope] Reading lines from a Zope File object

2005-06-23 Thread J Cameron Cooper
John Poltorak wrote: What function is used to read lines from a Zope File object using Python? Is there any example of this anywhere? Doing a search for 'python read zope object' is just too generic to find any python code to do this. You can get the main contents of a File with the 'data'

  1   2   >