yaniv-aknin/django-ajaxerrors — Issue #1: fails in windows
Author: roberts81
Created: 2012-02-02 05:22:01+00:00
State: open

line 35 of ajaxerrors/middleware.py:
if not os.path.isfile(token_path) or not os.stat(token_path).st_uid == os.getuid():

I get the following when running in windows:

AttributeError at /ajax-errors

'module' object has no attribute 'getuid'
Request Method:	GET
Request URL:	http://192.168.1.141:8000/ajax-errors?token=6ec7cdeb2634d874f63374d6c387f280
Django Version:	1.3
Exception Type:	AttributeError
Exception Value:

'module' object has no attribute 'getuid'
Exception Location:	C:\Python27\lib\site-packages\ajaxerrors\middleware.py in process_request, line 35
Python Executable:	C:\Python27\python.exe
Python Version:	2.7.2

Apparently, os.getuid() is not supported in windows . . . see http://adminsgoodies.com/crossplatform-way-to-check-admin-rights-in-python-script/

I may fork and try to do a fix on this if i get time, but may not get to it.