From: kupcevic@sourceware.org <kupcevic@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/ricci/test Variable.py add_sources_rende ...
Date: 28 Jun 2006 20:20:21 -0000 [thread overview]
Message-ID: <20060628202021.28477.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-06-28 20:20:20
Modified files:
ricci/test : Variable.py add_sources_renderer.py
Log message:
storage cgi test: fix add_sources
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/test/Variable.py.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/test/add_sources_renderer.py.diff?cvsroot=cluster&r1=1.2&r2=1.3
--- conga/ricci/test/Variable.py 2006/04/07 16:42:40 1.2
+++ conga/ricci/test/Variable.py 2006/06/28 20:20:20 1.3
@@ -261,13 +261,13 @@
elem.setAttribute('name', self.__name)
elem.setAttribute('type', self.type())
- l = self.get_value()
- for i in range(len(l)):
- x = l[i]
- e2 = doc.createElement(VARIABLE_TYPE_LISTENTRY)
- e2.setAttribute('value', str(x))
- e2.setAttribute('list_index', str(i))
- elem.appendChild(e2)
+ for x in self.get_value():
+ if self.type() == VARIABLE_TYPE_LIST_XML:
+ elem.appendChild(x)
+ else:
+ e2 = doc.createElement(VARIABLE_TYPE_LISTENTRY)
+ e2.setAttribute('value', str(x))
+ elem.appendChild(e2)
for mod in self.__mods:
elem.setAttribute(str(mod), str(self.__mods[mod]))
return elem
--- conga/ricci/test/add_sources_renderer.py 2006/04/07 16:42:40 1.2
+++ conga/ricci/test/add_sources_renderer.py 2006/06/28 20:20:20 1.3
@@ -125,10 +125,7 @@
func.appendChild(Variable('mapper_type', mapper_type).export_xml(doc))
func.appendChild(Variable('mapper_id', mapper_id).export_xml(doc))
func.appendChild(Variable('mapper_state_ind', mapper_state_ind).export_xml(doc))
- node_l = doc.createElement("list")
- for s in sources:
- node_l.appendChild(s)
- func.appendChild(Variable("bds", node_l).export_xml(doc))
+ func.appendChild(VariableList("bds", sources, {}, VARIABLE_TYPE_LIST_XML).export_xml(doc))
req.appendChild(func)
### submit request ###
reply other threads:[~2006-06-28 20:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060628202021.28477.qmail@sourceware.org \
--to=kupcevic@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.