Skip to content

Commit

Permalink
apps.student.simplifiedmetabases: Moved to coreutils.simplified.metab…
Browse files Browse the repository at this point in the history
…ases.
  • Loading branch information
espenak committed Jul 25, 2011
1 parent 4207027 commit 8c83a5f
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 18 deletions.
17 changes: 10 additions & 7 deletions devilry/apps/administrator/simplified.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
from ...simplified import (SimplifiedModelApi, simplified_modelapi,
PermissionDenied, FieldSpec,
FilterSpecs, FilterSpec, ForeignFilterSpec, PatternFilterSpec)
FilterSpecs, FilterSpec, PatternFilterSpec)
from ..core import models

from ..student.simplifiedmetabases import (SimplifiedSubjectMetaMixin,
SimplifiedPeriodMetaMixin, SimplifiedAssignmentMetaMixin,
SimplifiedAssignmentGroupMetaMixin, SimplifiedDeadlineMetaMixin,
SimplifiedDeliveryMetaMixin, SimplifiedStaticFeedbackMetaMixin,
SimplifiedFileMetaMetaMixin)
from devilry.coreutils.simplified.metabases import (SimplifiedSubjectMetaMixin,
SimplifiedPeriodMetaMixin,
SimplifiedAssignmentMetaMixin,
SimplifiedAssignmentGroupMetaMixin,
SimplifiedDeadlineMetaMixin,
SimplifiedDeliveryMetaMixin,
SimplifiedStaticFeedbackMetaMixin,
SimplifiedFileMetaMetaMixin)

__all__ = ('SimplifiedNode', 'SimplifiedSubject', 'SimplifiedPeriod', 'SimplifiedAssignment')



class CanSaveBase(SimplifiedModelApi):
""" Mixin class extended by many of the classes in the Simplified API for Administrator """
@classmethod
Expand Down
13 changes: 9 additions & 4 deletions devilry/apps/examiner/simplified.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
from ...simplified import SimplifiedModelApi, simplified_modelapi, PermissionDenied, FieldSpec
from ..core import models
from ..student.simplifiedmetabases import (SimplifiedSubjectMetaMixin, SimplifiedFileMetaMetaMixin,
SimplifiedPeriodMetaMixin, SimplifiedAssignmentMetaMixin,
SimplifiedAssignmentGroupMetaMixin, SimplifiedDeadlineMetaMixin,
SimplifiedDeliveryMetaMixin, SimplifiedStaticFeedbackMetaMixin,)
from devilry.coreutils.simplified.metabases import (SimplifiedSubjectMetaMixin,
SimplifiedFileMetaMetaMixin,
SimplifiedPeriodMetaMixin,
SimplifiedAssignmentMetaMixin,
SimplifiedAssignmentGroupMetaMixin,
SimplifiedDeadlineMetaMixin,
SimplifiedDeliveryMetaMixin,
SimplifiedStaticFeedbackMetaMixin,)



class PublishedWhereIsExaminerMixin(SimplifiedModelApi):
Expand Down
15 changes: 10 additions & 5 deletions devilry/apps/student/simplified.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
from datetime import datetime

from ...simplified import simplified_modelapi, SimplifiedModelApi, PermissionDenied
from simplifiedmetabases import (SimplifiedSubjectMetaMixin, SimplifiedPeriodMetaMixin,
SimplifiedAssignmentMetaMixin, SimplifiedAssignmentGroupMetaMixin,
SimplifiedDeadlineMetaMixin, SimplifiedDeliveryMetaMixin,
SimplifiedStaticFeedbackMetaMixin, SimplifiedFileMetaMetaMixin)
from restfulmetabases import DeadlineExtjsModelMeta
from devilry.coreutils.simplified.metabases import (SimplifiedSubjectMetaMixin,
SimplifiedPeriodMetaMixin,
SimplifiedAssignmentMetaMixin,
SimplifiedAssignmentGroupMetaMixin,
SimplifiedDeadlineMetaMixin,
SimplifiedDeliveryMetaMixin,
SimplifiedStaticFeedbackMetaMixin,
SimplifiedFileMetaMetaMixin)



class PublishedWhereIsCandidateMixin(SimplifiedModelApi):
""" Mixin class extended by all classes in the Simplified API for Student using the Simplified API """
Expand Down
1 change: 1 addition & 0 deletions devilry/coreutils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
""" Utility functions and classes shared by many applicaitons that uses apps.core. """
Empty file.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from ..core import models
from ...simplified import FieldSpec, FilterSpec, FilterSpecs, PatternFilterSpec, ForeignFilterSpec
from devilry.apps.core import models
from devilry.simplified import FieldSpec, FilterSpec, FilterSpecs, PatternFilterSpec, ForeignFilterSpec


class SimplifiedSubjectMetaMixin(object):
Expand Down

0 comments on commit 8c83a5f

Please sign in to comment.