#2281 Some ordinal values are strings, should be int

v1.0.0
closed
sf-1 (616)
General
nobody
2015-08-20
2011-06-10
No
Traceback (most recent call last):
 File "../scripts/teamforge-import.py", line 141, in main
   project = create_project(pid, nbhd)
 File "../scripts/teamforge-import.py", line 356, in create_project
   import_news(project, pid, frs_mapping, shortname, nbhd)
 File "../scripts/teamforge-import.py", line 545, in import_news
   news_app = project.install_app('blog', 'news', mount_label='News')
 File "/var/local/allura/Allura/allura/model/project.py", line 400, in install_app
   ordinal = self.ordered_mounts(include_search=True)[-1]['ordinal'] + 1
TypeError: coercing to Unicode: need string or buffer, int found

Discussion

  • Wolf - 2011-06-13
    • status: open --> code-review
    • assigned_to: Wolf --> Jenny Steele
     
  • Wolf - 2011-06-13

    code on forge:wo/2281

    to test, make a new project that includes as many tools as possible including the blog tool. Be careful not to reorder the tools. User the paster shell and find that project. Call its ordered_mounts() method. Check that ordinal is an int in all cases. What you should not see: "15" (the digits one and five in quotes).

     
  • Jenny Steele - 2011-06-15
    • status: code-review --> closed
     

Log in to post a comment.