Opened 20 years ago
Closed 20 years ago
#531 closed defect (fixed)
[patch] Debugging models with subclassing raises errors in Komodo
| Reported by: | Andreas | Owned by: | Adrian Holovaty |
|---|---|---|---|
| Component: | Core (Other) | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Debugging Django applications with ActiveState Komodo raises 'unexpected keyword argument' errors, e.g.:
Traceback (most recent call last):
File "C:\Programme\ActiveState Komodo 3.1\dbgp\pythonlib\dbgp\client.py", line 1799, in runMain
self.dbg.runfile(debug_args[0], debug_args)
File "C:\Programme\ActiveState Komodo 3.1\dbgp\pythonlib\dbgp\client.py", line 1524, in runfile
h_execfile(file, args, module=main, tracer=self)
File "C:\Programme\ActiveState Komodo 3.1\dbgp\pythonlib\dbgp\client.py", line 590, in __init__
execfile(file, globals, locals)
File "C:\Dokumente und Einstellungen\User\Eigene Dateien\myproject\apps\tasks\models\tasks.py", line 20, in __main__
class SubTask(Task):
File "C:\Programme\Python24\lib\site-packages\django\core\meta\__init__.py", line 443, in __new__
opts = bases[0]._meta.copy(**meta_overrides)
File "C:\Programme\Python24\lib\site-packages\django\core\meta\__init__.py", line 238, in copy
return self.__class__(**args)
TypeError: Error when calling the metaclass bases
__init__() got an unexpected keyword argument 'is_auto'
The attached patch solves the problem, but there is certainly a better way to solve it. I am not sure if this problem is limited to Komodo, my installation of Komodo or if there is some larger issue behind it.
Attachments (1)
Change History (2)
by , 20 years ago
| Attachment: | debug.patch added |
|---|
comment:1 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This should be fixed in the magic-removal branch.