问题描述
- python 类在实现了mongoengine后不能被继承是怎么回事?
-
[20:06:55][5648][INFO ][utils.py:20][]: ============== log initialized ==============
Traceback (most recent call last):
File "D:ztcjinglingztcjl3-20120903appskwlibtest.py", line 10, in
from kwlib.task_manage import Task_Manager
File "D:ztcjinglingztcjl3-20120903appskwlibtask_manage.py", line 461, in
class Claw_Task(Task_Manager):
File "C:Python27libsite-packagesmongoengine-0.8.1-py2.7.eggmongoenginebasemetaclasses.py", line 331, in new
new_class = super_new(cls, name, bases, attrs)
File "C:Python27libsite-packagesmongoengine-0.8.1-py2.7.eggmongoenginebasemetaclasses.py", line 119, in new
base.__name__)
ValueError: Document Task_Manager may not be subclassed
时间: 2024-10-01 10:56:54