Opened 16 years ago
Closed 16 years ago
#4435 closed defect (fixed)
error creating a release
Reported by: | anonymous | Owned by: | Joao Alexandre de Toledo |
---|---|---|---|
Priority: | normal | Component: | TracReleasePlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
When I am try to create a release, the following error appears: ................................................................
Oops… Trac detected an internal error:
AttributeError: 'list' object has no attribute 'split'
If you think this should work you can reproduce the problem, you should consider reporting this to the Trac team.
Before you do that, though, please first try searching for similar issues, as it is quite likely that this problem has been reported before. For questions about installation and configuration of Trac, please try the mailing list instead of filing a ticket.
Trac | 0.11.1 | Python | 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] | setuptools | 0.6c9 | Genshi | 0.5.1 | mod_python | 3.3.1 | Subversion | 1.5.3 (r33570) | MySQL | server: "5.0.51b-community-nt", client: "5.0.27", thread-safe: 1 | MySQLdb | 1.2.2 | jQuery: | 1.2.6 | ==== Python Traceback ==== Traceback (most recent call last): File "main.py", line 423, in _dispatch_request File "main.py", line 197, in dispatch File "c:\python25\lib\site-packages\tracreleaseplugin-0.2-py2.5.egg\tracrelease\core.py", line 109, in process_request ret = self._add_release(req, templateData) File "c:\python25\lib\site-packages\tracreleaseplugin-0.2-py2.5.egg\tracrelease\core.py", line 166, in _add_release return self._add_step_2(req, templateData) File "c:\python25\lib\site-packages\tracreleaseplugin-0.2-py2.5.egg\tracrelease\core.py", line 253, in _add_step_2 release.install_procedures) File "c:\python25\lib\site-packages\tracreleaseplugin-0.2-py2.5.egg\tracrelease\data.py", line 123, in createRelease for ticket in tickets.split(","): AttributeError: 'list' object has no attribute 'split' a new ticket at the Trac project site, where you can describe the problem and explain how to reproduce it.
|
Python Traceback Most recent call last:
- File "main.py", line 423, in _dispatch_request Local variables: Name Value after () before () dispatcher <trac.web.main.RequestDispatcher object at 0x02251E90> e AttributeError("'list' object has no attribute 'split'",) env <trac.env.Environment object at 0x01D5A730> env_error None exc_info (<type 'exceptions.AttributeError'>, AttributeError("'list' object has no ... filename 'main.py' frames [{'function': '_dispatch_request', 'lines_before': (), 'vars': {'req': ... has_admin True line None lineno 422 message u"AttributeError: 'list' object has no attribute 'split'" req <Request "POST u'/release/add'"> resp [] tb <traceback object at 0x0274A210> tb_hide None traceback 'Traceback (most recent call last):\n File "main.py", line 423, in ...
- File "main.py", line 197, in dispatch Local variables: Name Value chosen_handler <tracrelease.core.ReleaseCore object at 0x02251DF0> chrome <trac.web.chrome.Chrome object at 0x02251E50> ctype 'application/x-www-form-urlencoded' err (<type 'exceptions.AttributeError'>, AttributeError("'list' object has no ... handler <tracrelease.core.ReleaseCore object at 0x02251DF0> options {} req <Request "POST u'/release/add'"> self <trac.web.main.RequestDispatcher object at 0x02251E90>
- File "c:\python25\lib\site-packages\tracreleaseplugin-0.2-py2.5.egg\tracrelease\core.py", line 109, in process_request
Code fragment:
- req.write("You can't edit an existing Release for now") 105.
- if req.argsaction? == 'add':
- if req.method == "POST":
- self.log.debug("Adding: POST")
- ret = self._add_release(req, templateData)
- self.log.debug(templateData)
- self.log.debug(ret)
- return ret[0], ret[1], ret[2]
- else:
- self.log.debug("Adding: GET")
- File "c:\python25\lib\site-packages\tracreleaseplugin-0.2-py2.5.egg\tracrelease\core.py", line 166, in _add_release Code fragment:
161.
- if step == "1":
- return self._add_step_1(req, templateData) 164.
- elif step == "2":
- return self._add_step_2(req, templateData)
- def _add_step_1(self, req, templateData):
- release = model.Release()
Local variables: Name Value req <Request "POST u'/release/add'"> self <tracrelease.core.ReleaseCore object at 0x02251DF0> step u'2' templateData {'releaseTickets': ...
- File "c:\python25\lib\site-packages\tracreleaseplugin-0.2-py2.5.egg\tracrelease\core.py", line 253, in _add_step_2
Code fragment:
- self.log.debug("_add_step_2: Submit")
- resp = data.createRelease(self, templateDatareleaseName?, release.description,
- req.authname, None,
- release.tickets,
- release.signatures,
- release.install_procedures)
- if resp:
- req.redirect(req.href.release() + '/view/' + str(resp))
- else:
- return None, None, None 258.
- File "c:\python25\lib\site-packages\tracreleaseplugin-0.2-py2.5.egg\tracrelease\data.py", line 123, in createRelease
Code fragment:
- db.rollback() 119.
- if flag:
- relId = db.get_last_id(cur, 'releases')
- if relId:
- for ticket in tickets.split(","):
- ticket = ticket.strip()
- try:
- ticket = int(ticket)
- except:
- ticket = 0
File "main.py", line 423, in _dispatch_requestFile "main.py", line 197, in dispatchFile "c:\python25\lib\site-packages\tracreleaseplugin-0.2-py2.5.egg\tracrelease\core.py", line 109, in process_request
ret = self._add_release(req, templateData)
File "c:\python25\lib\site-packages\tracreleaseplugin-0.2-py2.5.egg\tracrelease\core.py", line 166, in _add_release
return self._add_step_2(req, templateData)
File "c:\python25\lib\site-packages\tracreleaseplugin-0.2-py2.5.egg\tracrelease\core.py", line 253, in _add_step_2
release.install_procedures)
File "c:\python25\lib\site-packages\tracreleaseplugin-0.2-py2.5.egg\tracrelease\data.py", line 123, in createRelease
for ticket in tickets.split(","):
System Information:
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 Trac: 0.11.1 Python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] setuptools: 0.6c9 Genshi: 0.5.1 mod_python: 3.3.1 Subversion: 1.5.3 (r33570) MySQL: server: "5.0.51b-community-nt", client: "5.0.27", thread-safe: 1 MySQLdb: 1.2.2 jQuery: 1.2.6
Attachments (0)
Change History (3)
comment:1 Changed 16 years ago by
Summary: | error cerating a release → error creating a release |
---|
comment:2 Changed 16 years ago by
Thanks for point the error. I'm too busy for now, but I'll return to this as soon as possible.
Thansk again,
João.
I forgot to quote all code text, fixed below: .................................................