• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • Extensible User Folder
  • Patches

changing roles with etcAuthSource

Brought to you by: akm
  • Summary
  • Files
  • Reviews
  • Support
  • Tickets ▾
    • Bugs
    • Support Requests
    • Patches
    • Feature Requests
  • Discussion
  • Donate
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#24 changing roles with etcAuthSource

open
nobody
None
5
2004-01-15
2004-01-15
Deepak Giridharagopal
No

I don't know if this is the same bug as with Patch
#626934, but that particular patch entry didn't have
and comments or attached files.

The offending code (from etcAuthSource.py):

232: if roles and self.default_role:

233: roles=roles.append(self.default_role)

234: elif self.default_role:

235: roles=[self.default_role,]

236: else:

237: roles=[]

Line 233 is the problem. 'roles.append' will always
return None, it should just be used in-place.
Currently, if you have any roles manually defined for a
user, then line 233 will just set 'roles' to 'None'.
Zope expects a sequence, not 'None'.

I've attached a small patch.

Discussion

  • Deepak Giridharagopal

    Deepak Giridharagopal - 2004-01-15
     
    role_append.patch
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    225 Broadway Suite 1600
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2025 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.