[Trac] Re: PublicWikiPolicy does not give ATTACHMENT_VIEW permission to anonymous

2008-09-02 Thread Jashugan

I've managed to get this working by modifying the check_permission
function of the PublicWikiPolicy plugin (public_wiki_policy.py) :

http://pastebin.com/f25f73659

Notes:
* An attachment's realm is 'attachment'
* An attachment's parent is the wiki page it belongs to
* the action when viewing an attachment is 'ATTACHMENT_VIEW'
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: ImportError: cannot import name compat

2008-06-24 Thread Jashugan

On Jun 24, 10:28 am, Leo Petr [EMAIL PROTECTED] wrote:
 On Jun 10, 3:38 am, RM [EMAIL PROTECTED] wrote:

  I just installed 0.11rc2 and am getting an ImportError when trying to
  save wiki pages. Here's the full stack:

 I am getting the same error with Trac 0.11 final. I'm using the
 official .tar.gz release on Ubuntu.

 http://pastebin.ca/1055176


I too am getting this error with the release version of Trac 0.11 (see
below). However, it only happens sometimes. When I reload the page the
error disappears. I had been running Trac 0.11rc1 up until the upgrade
without any problems.

I tried going to python and importing compat, but that failed. I also
tried doing a search for compat using find, but still came up with
nothing. I'm using Leopard Server with Trac installed from
easy_install and everything else installed using macports.

[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13] Filename: '/
opt/local/var/www/php/trac', referer: http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13] PathInfo: '/
chrome/common/changeset.png', referer: http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13] Traceback
(most recent call last):, referer: http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13]   File /opt/
local/lib/python2.5/site-packages/mod_python/importer.py, line 1537,
in HandlerDispatch\ndefault=default_handler, arg=req,
silent=hlist.silent), referer: http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13]   File /opt/
local/lib/python2.5/site-packages/mod_python/importer.py, line 1229,
in _process_target\nresult = _execute_target(config, req, object,
arg), referer: http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13]   File /opt/
local/lib/python2.5/site-packages/mod_python/importer.py, line 1128,
in _execute_target\nresult = object(arg), referer:
http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13]   File /opt/
local/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/
modpython_frontend.py, line 127, in handler\nfrom trac.web.main
import dispatch_request, referer: http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13]   File /opt/
local/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/
main.py, line 47, in module\nfrom trac.web.chrome import
Chrome, referer: http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13]   File /opt/
local/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/
chrome.py, line 40, in module\nfrom trac.util import compat,
get_reporter_id, presentation, get_pkginfo, \\, referer:
http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13] ImportError:
cannot import name compat, referer: http://server.company.com/trac/timeline


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: ImportError: cannot import name compat

2008-06-24 Thread Jashugan

This seems to have solved the issues for me (I think)...

sudo trac-admin /opt/local/var/trac/project/ deploy /opt/local/share/
trac/

I had manually copied the htdoc directory initially but forgot to copy
over the cgi-bin directory.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: ImportError: cannot import name compat

2008-06-24 Thread Jashugan

On Jun 24, 11:56 am, Jashugan [EMAIL PROTECTED] wrote:
 This seems to have solved the issues for me (I think)...

 sudo trac-admin /opt/local/var/trac/project/ deploy /opt/local/share/
 trac/


Never mind, I'm still getting errors.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---



[Trac] Re: ImportError: cannot import name compat

2008-06-24 Thread Jashugan

I tried this, but it didn't help.

$ find . -name compat*
./trac/tests/functional/compat.py
./trac/tests/functional/compat.pyc
./trac/util/compat.py
./trac/util/compat.pyc

$ cd trac/tests/functional
$ sudo mv compat.py testcompat.py
$ sudo rm compat.pyc

On Jun 24, 12:12 pm, Leons Petrazickis [EMAIL PROTECTED]
wrote:

 Well, I've resolved it by copying compat.py to compat2.py and
 switching all the references to it in chrome.py. Bizarre.
 Synchronization issue? Namespace issue? Not sure.


I just tried this, but it seems to be working for now.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~--~~~~--~~--~--~---