Sudesh soni wrote:
I am frequently recieving conflict errors like below in Zope logs.
Then I'd suggest having a good google and and read up on ConflictErrors.
You likely have a problem with your app's design that is causing a
ConflictError hotspot...
We have ZEO implemented with 2 Zope
Sudesh soni wrote:
BlankIf two diiferent Zope clients are sharing a ZEO storage, then how to
adjust siteroot to serve the request coming to individual Zope clients.
Why would you want to do that?
I am asking because when two Zope servers are up with different URI/subdomain and when I open
Sudesh soni wrote:
BlankIs the below error in Zope is due to adapter performance issue?
I doubt it.
Error Type: ConflictError
Error Value: database conflict error (oid 0x0ac7, class
Products.mxODBCZopeDA.ZopeDA.ZopeConnection, serial this txn started with
0x036f49361ca9d8ee 2007-07-28
[EMAIL PROTECTED] wrote:
2) However the only way I see is:
a- keep the session id in the request
b- if request.savedsessionidsession.id then alert session timed out
This won't work as you expect.
Specifically, request.savedsessionid will never be there when you want
it, since a request is
I have connect on demand property set for DA connection
Is that an issue?
Regards
Suson
- Original Message -
From: Chris Withers [EMAIL PROTECTED]
To: Sudesh soni [EMAIL PROTECTED]
Cc: zope@zope.org
Sent: Monday, July 30, 2007 3:42 AM
Subject: Re: [Zope] Conflict error
Sudesh soni
Yes, I used Apache rewrite rules now and it worked .
I used Zope mirrot to load balance as I have two zope servers coupled to
ZEO. All the clients know primary URL, so whenever clients access that URI ,
they will be redirected randomly to second zope server which is running on
different URI
Hi;
I´m trying to increment a variable in a page template. Here´s the general idea
in my code:
div metal:define-macro=main tal:define=x python:0
tal:block tal:define=x python:x + 1
td
input type=hidden tal:attributes=value item/name; name python:'item_name_'
+ `x`
Now, all of that
--On 30. Juli 2007 10:16:35 -0400 [EMAIL PROTECTED] wrote:
Hi;
I´m trying to increment a variable in a page template. Here´s the
general idea in my code:
div metal:define-macro=main tal:define=x python:0
Why do you need a counter in ZPT? This is absolutely one
of the worst things you can
In order to interact with the paypal shopping cart system, they want me to
increment hidden fields, such as:
input type=hidden tal:attributes=value item/name; name python:'item_name_'
+ `x`
input type=hidden tal:attributes=value item/id; name python:'item_number_'
+ `x`
where x is a number
+---[ [EMAIL PROTECTED] ]--
| In order to interact with the paypal shopping cart system, they want me to
| increment hidden fields, such as:
|
| input type=hidden tal:attributes=value item/name; name python:'item_name_'
| + `x`
| input type=hidden tal:attributes=value
Can you give me an example of how to use the enumerate method in a repeat? I've
googled this with no luck. Here's my tal:repeat clause:
? span tal:repeat=bitem_id bitem_ids; tal:omit-tag=
As fas as passing this to a python script, I'd rather not. That seems like too
much trouble for
You can use the ZTUtils Iterator()
div tal:define=iter python:modules['ZTUtils'].Iterator(range(1000))
br tal:define=dummy iter/next tal:replace=iter/number /
br tal:define=dummy iter/next tal:replace=iter/number /
br tal:define=dummy iter/next tal:replace=iter/number /
/div
Which might
I would think this should be pretty easy in the PT itself, given what you've
shared so far. But I'm still not quite there. Here's what I've got:
span tal:repeat=bitem_id bitem_ids tal:omit-tag=
div tal:define=iter python:modules['ZTUtils'].Iterator(range(1000))
br
You should now have all the parts.
Instead of iterating over python:range(1000) do it on bitem_ids instead.
You don't have to use a br / tag. You can use
input tal:attributes=value iter/number /
if you want.
You increment it by calling tal:iter/next whichever way you do it.
[EMAIL PROTECTED]
Try this way:
tal:loop repeat=item bitems
input type=hidden tal:attributes=value item/name; name
string:item_name_${repeat/item/number}
input type=hidden tal:attributes=value item/id; name
string:item_number_${repeat/item/number}
/tal:loop
Zenrique.
2007/7/30, Peter Bengtsson [EMAIL
Okay, I've got this line:
div tal:define=iter python:modules['ZTUtils'].Iterator(range(1000)); x
iter/next
and then use this kind of line several times further down and within the div:
input type=hidden tal:attributes=value bitem/quantity; name
python:'quantity_' + `x`
It's complaining that:
Error Type: TypeError
Error Value: string indices must be integers
I tried back ticks and that still gave the same error.
TIA,
Tony
tal:loop repeat=item bitems
input type=hidden tal:attributes=value item/name; name
string:item_name_${repeat/item/number}
input
I understood that 'bitems' was a sequence of dictionaries. Ex: ({'name':
'xyz', 'id': 1'},{'name': 'pex', 'id': 2},{'name': 'wei', 'id': 3}...).
If it's something different, you have to change the code to handle your
object properly.
Zenrique.
2007/7/30, [EMAIL PROTECTED] [EMAIL PROTECTED]:
This is the code that I have:
span tal:repeat=bitem_id bitem_ids tal:omit-tag=
span tal:define=bitem python:here.basketItemManager.getItem(bitem_id);
item
python:here.marketItems.getItem(bitem.marketItemId)
tal:omit-tag=
This is the code
Well, there I go making mountains out of molehills again. This worked just fine:
span tal:define=bitem python:here.basketItemManager.getItem(bitem_id);
item
python:here.marketItems.getItem(bitem.marketItemId);
x repeat/bitem_id/number
Log message for revision 78482:
Simplify by using more machinery from Zope 3 (which we can thanks to
IBrowserPUblisher
support since Zope 2.10)
Changed:
U
Zope/branches/philikon-aq/lib/python/Products/Five/browser/metaconfigure.py
-=-
Modified:
Log message for revision 78483:
Assert that views of the form
class MyView(BrowserView):
__call__ = ViewPageTemplateFile('...')
work.
Changed:
U Zope/branches/philikon-aq/lib/python/Products/Five/browser/tests/pages.py
U
Log message for revision 78489:
Some legacy tests. And a (disabled) failing one that tests the __of__
behaviour of BrowserView. Well, when I say failing I should really say
segfaulting :/
Changed:
U Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py
A
Summary of messages to the zope-tests list.
Period Sun Jul 29 12:00:00 2007 UTC to Mon Jul 30 12:00:00 2007 UTC.
There were 5 messages: 5 from Zope Unit Tests.
Tests passed OK
---
Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Sun Jul 29 20:54:55 EDT 2007
Dear list,
I have a ZPT that lists results from a Z SQL Method. It has one argument:
dropdown-department. Everything works fine, except I cannot find a way
to include the passed SQL argument as a string in the ZPT document!
To explain it in another way, a user selects a value from a drop-down
Am 30.07.2007, 18:55 Uhr, schrieb Richard Flaaten [EMAIL PROTECTED]:
Dear list,
I have a ZPT that lists results from a Z SQL Method. It has one argument:
dropdown-department. Everything works fine, except I cannot find a way
to include the passed SQL argument as a string in the ZPT document!
quote who=Charlie Clark
Am 30.07.2007, 18:55 Uhr, schrieb Richard Flaaten [EMAIL PROTECTED]:
Dear list,
I have a ZPT that lists results from a Z SQL Method. It has one
argument:
dropdown-department. Everything works fine, except I cannot find a way
to include the passed SQL argument as a
Am 30.07.2007, 19:18 Uhr, schrieb Richard Flaaten [EMAIL PROTECTED]:
Richard,
although this is actually a ZPT issue and nothing specific to do with
RDBMS.
All I want to do is use the dtml-sqlvar argument as a string in my ZPT.
My ZPT is
I guess my questions are confusing since I am new to Zope. The dtml-sqlvar
is already defined; the results from the Z SQL Method are already
presented; I just want to remind the user of what they passed to the Z
SQL Method.
In other words, I only want to print what they selected from a drop-down
I guess my questions are confusing since I am new to Zope. The dtml-sqlvar
is already defined; the results from the Z SQL Method are already
presented; I just want to remind the user of what they passed to the Z
SQL Method.
You can't get sql query parameters from it's results. It's like
30 matches
Mail list logo