indrajit926 indra wrote at 2008-12-12 18:21 +0530:
Now i want to improve performance of project.So i thought to reduce number
of zsqls,expecting it may improve performance.
The runtime performance is only minimally affected (ZSQL methods are
small objects).
The structure of your ZSQL methods may
Assuming you're developing your product on the filesystem and not inside the ZMI
you can use this:
http://www.fry-it.com/oss/ZSQL which has some profiling options.
2008/12/12 indrajit926 indra indrajit...@gmail.com:
Hi All,
In my project iam using zsqls.
Now i want to improve performance of
first, convert mylist to string before calling ZSQL method:
dtml-call REQUEST.set('strmylist', _.str(mylist))
And then call the ZSQL method:
params
strmylist:string=[0]
/params
SELECT *
FROM MyTable
WHERE
id in
(dtml-var strmylist[1:-1] sql_quote)
- Original Message -
From:
Hello,
I'm trying to store strings with certain unicode characters that don't
convert to ascii in the ZODB. Specifically, as a file object and as
properties of that file object. I get the following errors (from a script):
*Error Type: AttributeError*
*Error Value: 'unicode' object has no
On 14.12.2008 1:13 Uhr, Thibaud Morel l'Horset wrote:
Hello,
I'm trying to store strings with certain unicode characters that don't
convert to ascii in the ZODB. Specifically, as a file object and as
properties of that file object. I get the following errors (from a script):
*Error Type:
rugbert wrote at 2008-12-12 09:33 -0800:
My client's zope has two back ends, /manage and /tools. tools is the one with
the more user friendly interface and manage is the utilitarian one.
When users goto /tools tho, and click the assets folder the site times
outs with this:
[code]
Proxy Error
Bertus Van der Linden wrote at 2008-12-12 15:32 -0700:
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
/home/nolbert/miqra/mbm-dev-buildout2/parts/instance/etc/site.zcml, line
15.2-15.23
ZopeXMLConfigurationError: File
Log message for revision 94019:
Obviously the level 0 case has been implemented before the index was merged
into CVS trunk 8 years ago..
Changed:
U Zope/trunk/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
-=-
Modified:
Log message for revision 94020:
bviously the level 0 case has been implemented before the index was merged
into CVS trunk 8 years ago..
Changed:
U
Zope/branches/2.11/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
-=-
Modified:
Log message for revision 94021:
Obviously the level 0 case has been implemented before the index was merged
into CVS trunk 8 years ago..
Changed:
U
Zope/branches/2.10/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
-=-
Modified:
Log message for revision 94030:
Remove incorrect statement; the whole path is indexed, including the object
id.
Changed:
U
Zope/trunk/lib/python/Products/PluginIndexes/PathIndex/dtml/addPathIndex.dtml
-=-
Modified:
Log message for revision 94031:
Remove incorrect statement; the whole path is indexed, including the object
id.
Changed:
U
Zope/branches/2.11/lib/python/Products/PluginIndexes/PathIndex/dtml/addPathIndex.dtml
-=-
Modified:
Log message for revision 94032:
Remove incorrect statement; the whole path is indexed, including the object
id.
Changed:
U
Zope/branches/2.10/lib/python/Products/PluginIndexes/PathIndex/dtml/addPathIndex.dtml
-=-
Modified:
Log message for revision 94034:
Port improvements from ExtendedPathIndex:
- The level 0 case is basically the union of all searches for levels 0
through to max. Just call search() for each level and use multiunion on all the
results.
- Shorten the 'no-such-path' detection to one test.
Log message for revision 94035:
Port improvements from ExtendedPathIndex:
- The level 0 case is basically the union of all searches for levels 0
through to max. Just call search() for each level and use multiunion on all
the results.
- Shorten the 'no-such-path' detection to one
Log message for revision 94036:
Port improvements from ExtendedPathIndex:
- The level 0 case is basically the union of all searches for levels 0
through to max. Just call search() for each level and use multiunion on all
the results.
- Shorten the 'no-such-path' detection to one
Chris Withers wrote at 2008-12-13 02:17 +:
I have a need to be able to adapting certain objects to None, eg:
def some_adapter(obj):
if something:
return None
return somethingelse
Your use case seems to abuse adaptation:
Adaptation to an interface must always return an object
Chris Withers wrote at 2008-12-13 10:18 +:
Dieter Maurer wrote:
I think that in some cases, it would be useful for an adapter factory
to say 'I cannot handle this case' and then the adapter lookup
is continued. Maybe, this is already supported?
Then, maybe, you can use it?
That's exactly
Dieter Maurer wrote:
Then, use something different from adaptation (as adaptation does
not fit your wishes).
This is what I'm trying to do with subclassing, and my question was why
that subclassing wasn't working...
I expect that your adapter factory can raise ComponentLookupError
when it
On Sat, Dec 13, 2008 at 10:42:09AM +, Chris Withers wrote:
Dieter Maurer wrote:
Then, use something different from adaptation (as adaptation does
not fit your wishes).
This is what I'm trying to do with subclassing, and my question was why
that subclassing wasn't working...
Summary of messages to the zope-tests list.
Period Fri Dec 12 12:00:00 2008 UTC to Sat Dec 13 12:00:00 2008 UTC.
There were 6 messages: 6 from Zope Tests.
Test failures
-
Subject: FAILED (failures=2) : Zope-trunk Python-2.4.5 : Linux
From: Zope Tests
Date: Fri Dec 12 20:37:00 EST
Chris Withers chris at simplistix.co.uk writes:
Hi All,
I have a need to be able to adapting certain objects to None, eg:
def some_adapter(obj):
if something:
return None
return somethingelse
This is tricky, since returning None from an adapter results in a TypeError.
Gareth Bult wrote:
I'm having a bit of a problem that looks like a 32 bit vs 64 bit issue
with RelStorage, can anyone help?
We need to get more people to use RelStorage so more people can help. :-)
This looks like a good clue:
Chris Withers wrote at 2008-12-13 10:42 +:
...
From looking at the python implementation of Interface, __call__ is
indicated to be the method to override, but with the C-based Interface,
this has no effect. Why is that?
*That's* what I'm looking for help with, not judgement on whether
24 matches
Mail list logo