Hi Andreas,
I had a requirement where I needed to manage the resource directories
dynamically. So I developed some of following code. I guess this might
be of help.
Functions to work with browser resources at run time
#python imports
import logging
# zope imports
from
/
With regards,
- Shailesh
On Tue, Jun 2, 2009 at 6:12 AM, Edward Zwart ed.zw...@softserv.ca wrote:
On Sat, May 30, 2009 at 12:00 AM, Shailesh Kumar shaile...@gmail.com
wrote:
Web component development with Zope 3 by Philipp von Weitershausen has
been
my best resource on zope 3 developement all
Hello,
I have been using Zope 3 primarily on Windows platforms for last 2.5 years.
This is what I do for the typical setup:
- Install Python 2.4.4
- Install Python for Windows extensions for Python 2.4
- Install Zope 3.3.1 (the binary installer)
- Go to C:\Python24\Scripts
- Use mkzopeinstance
Hello,
I had seen a site new.zope.org coming up sometime back which was using
Sphinx for the documentation of Zope 3. Though there was never a public
announcement of the website on this mailing list. The approach seemed
promising. It somehow supported integration of work from multiple
please have a look at AttributeIndex mixin.
http://apidoc.zope.org/++apidoc++/Book/indexcatalog/catalog/show.html
Having 3 different Attribute Indices might be a better idea than 3 different
Text Indices.
With regards,
- Shailesh
On Fri, Feb 13, 2009 at 10:33 PM, Massimiliano della Rovere
Hi,
I believe not. In any case, implements, provides and such things are more
like indications of what is being supported by a class and they are not
enforced by runtime strictly.
I just tried following:
#
from zope.component
at z3c.authenticator.
Regards
Roger Ineichen
On Tue, 2008-07-08 at 22:52 -0700, Shailesh Kumar wrote:
Did you try the resourceDirecotry ZCML directive?
browser:resourceDirectory
name=js
directory=resource/js
layer=.interfaces.IBatonSkin
/
that way
BTreeContainer doesn't support site managers.
Folder is a subclass of SiteManagerContainer which is a subclass of
BTreeContainer.
You can happily use Folder here.
With regards,
- Shailesh
On 7/8/08, Tim Cook [EMAIL PROTECTED] wrote:
I am building a platform where I want to initialize the
Did you try the resourceDirecotry ZCML directive?
browser:resourceDirectory
name=js
directory=resource/js
layer=.interfaces.IBatonSkin
/
that way they don't need the authentication overhead.
On 7/8/08, andrew [EMAIL PROTECTED] wrote:
Hi All,
I've got a web application that uses
-packages\win32
* C:\Program Files\Plone2.5.5\Python\lib\site-packages\win32\lib
* C:\Program Files\Plone2.5.5\Python\lib\site-packages\Pythonwin
* C:\Program Files\Plone2.5.5\Python\lib\site-packages\wx-2.6-msw-ansi
--
*From:* Shailesh Kumar [mailto:[EMAIL PROTECTED
Hi,
I apologize for posting on this list. I am posting here because I do not
know where else to post.
We at Interra Systems (Noida, India) are looking for one Zope3 engineer for
a full time position.
Anyone interested may please write directly to me.
With regards,
- Shailesh
Thanks Bernd,
I am working around this issues as you have suggested.
- Shailesh
On Nov 17, 2007 5:31 PM, Bernd Dorn [EMAIL PROTECTED] wrote:
On 16.11.2007, at 13:56, Shailesh Kumar wrote:
As of now, I am thinking of a following solution. For the current upgrade,
I will have some code
Hi,
I have a small doubt regarding zope3 generations.
In the current way of doing things:
- one should first put a dummy schema manager, restart the zope, so that a
generation 0 is assigned to the application.
- one should then put the actual site specific schema manager which would
use the
Probably z3c.zrtresource might be of some use?
http://svn.zope.org/z3c.zrtresource/trunk/src/z3c/zrtresource/README.txt?rev=69512view=auto
- Shailesh
On 10/8/07, Yuan HOng [EMAIL PROTECTED] wrote:
Hi,
How do I dynamically generate javascript and css files and how to register
them?
ZPT
Hi,
apart from Session Credentials, I would also have Zope Realm
Basic-Auth in my credentials plugin (as the last one).
For the normal browser based access, the session credentials plugin
does the work.
For XMLRPC access, I fall back on 'Zope Realm Basic-Auth'.
The URL for XMLRPC server proxy
Thanx a lot Adam and Christian.
With regards,
-Shailesh
On 8/10/07, Christian Theune [EMAIL PROTECTED] wrote:
Hi,
Am Donnerstag, den 09.08.2007, 14:32 +0530 schrieb Shailesh Kumar:
Hi,
Just another quick question on this. Is there any plan for new bug fix
releases of 3.3 branch
I have Zope 3.3.1 the official release.
With regards,
-Shailesh
On 8/9/07, Adam Groszer [EMAIL PROTECTED] wrote:
Hello Shailesh,
Which version of Z3 re you using?
As I remember that was fixed, but I can't dig the info from SVN.
Tuesday, August 7, 2007, 5:28:02 PM, you wrote:
Hi,
I
Hi,
Just another quick question on this. Is there any plan for new bug fix
releases of 3.3 branch? or Will the next releases be on the 3.4
branch?
With regards,
-Shailesh
On 8/9/07, Adam Groszer [EMAIL PROTECTED] wrote:
Hello Shailesh,
As I remember the fix was later.
Thursday, August 9,
Hi,
zope.app.security.principallogging.PrincipalLogging looks like:
class PrincipalLogging(object):
implements(ILoggingInfo)
def __init__(self, principal):
self.principal = principal
def getLogMessage(self):
return str(self.principal.id)
It requires that
Hi,
I was using InternalPrincipal object and specified a password with
non-ascii characters. Since Password is derived from TextLine, hence
its supposed to be acceptable. But I found that if I use MD5 or SHA1
password managers, it leads to problems. The following exception is
thrown.
I guess
from zope.component.globalregistry import getGlobalSiteManager
gsm = getGlobalSiteManager()
gsm.unregisterUtility(component=None, provided=None, name=u'')
Would that help?
With regards,
-Shailesh
On 6/9/07, Andreas Jung [EMAIL PROTECTED] wrote:
I have an application where I need to
May be I am wrong. Didn't read the question properly ! Don't know
about Zope 3.0.
On 6/9/07, Shailesh Kumar [EMAIL PROTECTED] wrote:
from zope.component.globalregistry import getGlobalSiteManager
gsm = getGlobalSiteManager()
gsm.unregisterUtility(component=None, provided=None, name=u
Hi,
I ran into this small problem.
I had added a
meta:provides feature=afeature /
This works fine for controlling ZCML directives.
Now at some places in my Python code, I would like to query whether afeature
is available or not.
What is the way to access this?
Looking at ZMCL documentation
Hi,
Is it possible to control the default page for a particular object based on
the roles/permissions that a user has?
The browser:defaultPage directive as such doesn't support this.
Will I have to write a custom traverser or something like that for this?
Thanx in advance.
With regards,
?
With regards,
-Shailesh
On 1/15/07, Shailesh Kumar [EMAIL PROTECTED] wrote:
Sorry, the mail went only to Philipp by mistake.
Hi Philipp,
Thanx for the pointers. I went through the sections of your book regarding
this. I guess I now understand my problem better. The problem is about the
time-zone
Hi,
When I look at the Creation time and Modification time in any of the
container views, it shows me the UTC time.
Looking at
zope.app.container.browser.contents.py: Line 174
I found that:
formatter = self.request.locale.dates.getFormatter(
'dateTime', 'short')
to work well.
With regards,
-Shailesh
On 1/8/07, Stephan Richter [EMAIL PROTECTED] wrote:
On Wednesday 03 January 2007 05:46, Shailesh Kumar wrote:
In my application, some background threads are being created. But when a
thread finishes up its work, a strange exception is thrown:
The callstack
Hi,
In my application, some background threads are being created. But when a
thread finishes up its work, a strange exception is thrown:
The callstack doesn't show any part of my application code.
=
Traceback
Hi,
I wanted to do some cleanup activities during the time of server shutdown.
Couldn't find any particular event that is sent at that time. But looking
at: zope.app.main.main, i tried:
from twisted.internet import reactor
def shutdown():
#shutdown code here.
pass
as such (I
couldn't figure out how it can be accessible). Probably I can get it by
parsing zope.conf again in my code.
With regards,
-shailesh
On 11/29/06, Chris Withers [EMAIL PROTECTED] wrote:
Shailesh Kumar wrote:
Thanx for the hint. I still don't know how to programmatically access
the
event
Hi,
Is it possible for the application code to figure out the port number on
which zope is running? What is the suitable api for that?
With regards,
-shailesh
___
Zope3-users mailing list
Zope3-users@zope.org
Thanx for the hint. I still don't know how to programmatically access the
event log. will try to figure it out.
With regards,
-shailesh
On 11/28/06, Chris Withers [EMAIL PROTECTED] wrote:
Shailesh Kumar wrote:
Thanx Tom, but I was looking for the general case, not in the context
Hi,
I am trying to use mail:queuedDelivery. It says that the
*...\lib\python\baton\mail_queue is not a Maildir folder*
I am using Zope on Windows-XP box. How can I setup a Maildir folder?
With regards,
-shailesh
___
Zope3-users mailing list
'] = Folder()
...
Is it possible to do that?
With regards,
-shailesh
On 11/15/06, Tom Gross [EMAIL PROTECTED] wrote:
Hi Shailesh,
have a look at zope.traversing.api. There's a getRoot-method.
Cheers
-Tom
Shailesh Kumar wrote:
Hi,
In a functional test setup, one can access the root folder
Thank you very much. This technique works perfectly.
-shailesh
On 11/17/06, Thierry Florac [EMAIL PROTECTED] wrote:
Le vendredi 17 novembre 2006 à 16:59 +0530, Shailesh Kumar a écrit :
I currently use something like this, to handle a site configuration on
startup (define catalog indexes
Hi,
In a functional test setup, one can access the root folder using getRootFolder() of FunctionalTestSetup.
How can I access the root folder in a nomal operation mode? Is there some mechanism to do that?
Thank you very much.
With regards,
-shailesh
Hi,
A small question about functional testing.
What is the purpose of ftesting.zcml ? Do I need to put something in
this file for running functional tests? Or it needs to have just
configure/configure?
Thanx in advance.
With regards,
-shailesh
___
Dear zope experts,
I have some doubts regarding the working of placelesssetup. I am not familiar with its workings.
Is it ok to run a placelesssetup when a zope instance is already running?
Does it create its own site structure in memory? (I saw a buildSampleFolderTree in
Thank you Phillip,
Just for curiosity, is this zc.async package always going to be a third party or is there any plan of making the
package part of regular zope distribution?
With regards,
-shailesh
On 11/8/06, Philipp von Weitershausen [EMAIL PROTECTED] wrote:
Shailesh Kumar wrote: In my zope
One way I can do it is by registering a utility whose
__del__(
self)
method is overridden.
Is it a recommended method?
With regards,
-shailesh
On 11/8/06, Shailesh Kumar [EMAIL PROTECTED] wrote:
Dear zope experts,
In my zope based application, I want to do some periodic actions. I
Hi,
I don't know what I did but I cannot find the logout button in my ZMI.
So, I am not able to change login without closing the browser. Is there
something which enables or disables this button in ZMI?
All help is appreciated.
With regards,
-shailesh
Hi all,
Could you please clarify some basic doubts about the usage of utilities? Here they are.
Suppose I have registered a utility using ZCML directive in my web application.
Is the utility created the moment zope starts up, during the parsing of
my app's ZCML? Can I think of it as a
Hi all,
I am a new zope3 user. I am running zope3 in developer mode with
runzope command. A number of times (off course when I am doing
something wrong) it happens that zope3 gives a blank page with just one
line information:
'A system error occurred'
Is there some mechanism to be able to see
43 matches
Mail list logo