Opened 16 years ago
Closed 16 years ago
#7407 closed defect (invalid)
Unable to load plugin authz_policy.py
Reported by: | Owned by: | Alec Thomas | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.11b1 |
Severity: | critical | Keywords: | |
Cc: | Alec Thomas, Christian Boos | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Following: TracFineGrainedPermissions
I cannot get the authz_policy.py plugin to work.
- Receive error in trac log:
2008-07-03 23:55:06,569 Trac[loader] DEBUG: Loading file plugin authz_policy from /..(snip)../trac/my_project/plugins/authz_policy.py 2008-07-03 23:55:06,570 Trac[loader] ERROR: Failed to load plugin from /..(snip)../trac/my_project/plugins/authz_policy.py File "/..(snip)../trac/my_project/plugins/authz_policy.py", line 1
- Of course because of this, fine grained permissions do not work.
Where is this .py file supposed to go? And, why isn't it an egg?
Attachments (0)
Change History (3)
comment:1 by , 16 years ago
comment:3 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
omg … thank you. (funny how you can sit for some time trying to debug something and skip right over an important assumption) … it's nice to wake up the next morning and have a fresh brain.
When I wget'd the file, I wget'd:
wget http://trac.edgewall.org/browser/trunk/sample-plugins/permissions/authz_policy.py
instead of:
wget http://trac.edgewall.org/browser/trunk/sample-plugins/permissions/authz_policy.py?format=txt/authz_policy.py
i.e. I ended up downloading an HTML file instead of the RAW authz_policy.py.
Sorry for wasting your time dudes.
Replying to fermulator@sympatico.ca:
You've snipped the actual error off…
It's not an egg because it's a single-file plugin. It goes directly into your environments
plugins
directory.