Hi fellow djangonauts A while back I isolated the django ORM to run completely without all the rest of django, to be able to use it in EventScripts (a plugin for the source game server (counter strike and others) allowing to develop plugins in python). It worked well for me and my tests were all positive, however recently another developer found the following problem when trying to run a filter query on a table:
File "c:\games\steam\steamapps\abi_dalzim\source dedicated server\cstrike\addons\eventscripts\es.py", line 211, in tick x() File "c:\games\steam\steamapps\abi_dalzim\source dedicated server\cstrike\addons\eventscripts\_libs\python\gamethread.py", line 173, in tick _executenode(first) File "c:\games\steam\steamapps\abi_dalzim\source dedicated server\cstrike\addons\eventscripts\_libs\python\gamethread.py", line 155, in _executenode function(*a, **kw) File "c:\games\steam\steamapps\abi_dalzim\source dedicated server\cstrike\addons\eventscripts\climbtimer\climbtimer.py", line 274, in checkLoop Run.objects.add_run(str(currentMap), steamid, es.getplayername(player), timeTaken, players[player][1]) File "c:\games\steam\steamapps\abi_dalzim\source dedicated server\cstrike\addons\eventscripts\climbtimer\climbbase.py", line 37, in add_run players = Player.objects.filter(steamid=steamid) File "c:\games\steam\steamapps\abi_dalzim\source dedicated server\cstrike\addons\eventscripts\_libs\python\oorm\models\manager.py", line 129, in filter return self.get_query_set().filter(*args, **kwargs) File "c:\games\steam\steamapps\abi_dalzim\source dedicated server\cstrike\addons\eventscripts\_libs\python\oorm\models\query.py", line 494, in filter return self._filter_or_exclude(False, *args, **kwargs) File "c:\games\steam\steamapps\abi_dalzim\source dedicated server\cstrike\addons\eventscripts\_libs\python\oorm\models\query.py", line 508, in _filter_or_exclude clone = self._clone() File "c:\games\steam\steamapps\abi_dalzim\source dedicated server\cstrike\addons\eventscripts\_libs\python\oorm\models\query.py", line 671, in _clone query = self.query.clone() File "c:\games\steam\steamapps\abi_dalzim\source dedicated server\cstrike\addons\eventscripts\_libs\python\oorm\models\sql\query.py", line 238, in clone obj.__dict__.update(kwargs) TypeError: descriptor '__dict__' for 'Empty' objects doesn't apply to 'BaseQuery' object For some reason the query cloning doesn't work. It's running on python2.5.1 and the modified source I use can be found on http://bitbucket.org/ojii/oorm/src/. I'd really appreciate any input on why that issue occurs and more importantly, how to possibly fix it. Jonas -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.