Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class BuildMetric (WorkspaceDomainObject): pass # query capable only
class BuildMetricDefinition (WorkspaceDomainObject): pass # query capable only
class Change (WorkspaceDomainObject): pass
class Changeset (WorkspaceDomainObject): pass
class ConversationPost (WorkspaceDomainObject): pass # query capable only
class FlowState (WorkspaceDomainObject): pass
class Milestone (WorkspaceDomainObject): pass
class Preference (WorkspaceDomainObject): pass
class PreliminaryEstimate (WorkspaceDomainObject): pass
class SCMRepository (WorkspaceDomainObject): pass
class State (WorkspaceDomainObject): pass
class TestCaseStep (WorkspaceDomainObject): pass
class TestCaseResult (WorkspaceDomainObject): pass
class TestFolder (WorkspaceDomainObject): pass
class TestFolderStatus (WorkspaceDomainObject): pass
class Tag (WorkspaceDomainObject): pass
class TimeEntryItem (WorkspaceDomainObject): pass
class TimeEntryValue (WorkspaceDomainObject): pass
class UserIterationCapacity (WorkspaceDomainObject): pass
class RecycleBinEntry (WorkspaceDomainObject): pass
class RevisionHistory (WorkspaceDomainObject): pass
class ProfileImage (WorkspaceDomainObject): pass
class Revision (WorkspaceDomainObject):
INFO_ATTRS = ['RevisionNumber', 'Description', 'CreationDate', 'User']
def info(self):
rev_num = self.RevisionNumber
desc = self.Description
activity_timestamp = self.CreationDate
whodunit = self.User.Name # self.User.UserName # can't do UserName as context is incomplete...
rev_blurb = " %3d on %s by %s\n %s" % (rev_num, activity_timestamp, whodunit, desc)
return rev_blurb
elif isinstance(value, User):
# also want the className, OID, UserName, DisplayName
anv = " %-24s : %s.ref (OID %s UserName %s DisplayName %s)" % \
(attr_name, cln, value.oid, value.UserName, value.DisplayName)
else:
# also want the className, OID, Name)
anv = "%s (OID %s Name %s)" % (anv, value.oid, value.Name)
tank.append(anv)
return "\n".join(tank)
class WorkspaceConfiguration(WorkspaceDomainObject): pass
class Type (WorkspaceDomainObject): pass
class Program (WorkspaceDomainObject): pass
class Project (WorkspaceDomainObject): pass
class Release (WorkspaceDomainObject): pass
class Iteration (WorkspaceDomainObject): pass # query capable only
class ArtifactNotification (WorkspaceDomainObject): pass # query capable only
class AttributeDefinition (WorkspaceDomainObject): pass # query capable only
class TypeDefinition (WorkspaceDomainObject): pass # query capable only
class Attachment (WorkspaceDomainObject): pass
class AttachmentContent (WorkspaceDomainObject): pass
class Build (WorkspaceDomainObject): pass # query capable only
class BuildDefinition (WorkspaceDomainObject): pass # query capable only
class BuildMetric (WorkspaceDomainObject): pass # query capable only
class BuildMetricDefinition (WorkspaceDomainObject): pass # query capable only
class Change (WorkspaceDomainObject): pass
class Changeset (WorkspaceDomainObject): pass
class ConversationPost (WorkspaceDomainObject): pass # query capable only
class FlowState (WorkspaceDomainObject): pass
class Milestone (WorkspaceDomainObject): pass
class Preference (WorkspaceDomainObject): pass
class Build (WorkspaceDomainObject): pass # query capable only
class BuildDefinition (WorkspaceDomainObject): pass # query capable only
class BuildMetric (WorkspaceDomainObject): pass # query capable only
class BuildMetricDefinition (WorkspaceDomainObject): pass # query capable only
class Change (WorkspaceDomainObject): pass
class Changeset (WorkspaceDomainObject): pass
class ConversationPost (WorkspaceDomainObject): pass # query capable only
class FlowState (WorkspaceDomainObject): pass
class Milestone (WorkspaceDomainObject): pass
class Preference (WorkspaceDomainObject): pass
class PreliminaryEstimate (WorkspaceDomainObject): pass
class SCMRepository (WorkspaceDomainObject): pass
class State (WorkspaceDomainObject): pass
class TestCaseStep (WorkspaceDomainObject): pass
class TestCaseResult (WorkspaceDomainObject): pass
class TestFolder (WorkspaceDomainObject): pass
class TestFolderStatus (WorkspaceDomainObject): pass
class Tag (WorkspaceDomainObject): pass
class TimeEntryItem (WorkspaceDomainObject): pass
class TimeEntryValue (WorkspaceDomainObject): pass
class UserIterationCapacity (WorkspaceDomainObject): pass
class RecycleBinEntry (WorkspaceDomainObject): pass
class RevisionHistory (WorkspaceDomainObject): pass
class ProfileImage (WorkspaceDomainObject): pass
class Revision (WorkspaceDomainObject):
INFO_ATTRS = ['RevisionNumber', 'Description', 'CreationDate', 'User']
def info(self):
rev_num = self.RevisionNumber
desc = self.Description
activity_timestamp = self.CreationDate
whodunit = self.User.Name # self.User.UserName # can't do UserName as context is incomplete...
rev_blurb = " %3d on %s by %s\n %s" % (rev_num, activity_timestamp, whodunit, desc)
class BuildMetricDefinition (WorkspaceDomainObject): pass # query capable only
class Change (WorkspaceDomainObject): pass
class Changeset (WorkspaceDomainObject): pass
class ConversationPost (WorkspaceDomainObject): pass # query capable only
class FlowState (WorkspaceDomainObject): pass
class Milestone (WorkspaceDomainObject): pass
class Preference (WorkspaceDomainObject): pass
class PreliminaryEstimate (WorkspaceDomainObject): pass
class SCMRepository (WorkspaceDomainObject): pass
class State (WorkspaceDomainObject): pass
class TestCaseStep (WorkspaceDomainObject): pass
class TestCaseResult (WorkspaceDomainObject): pass
class TestFolder (WorkspaceDomainObject): pass
class TestFolderStatus (WorkspaceDomainObject): pass
class Tag (WorkspaceDomainObject): pass
class TimeEntryItem (WorkspaceDomainObject): pass
class TimeEntryValue (WorkspaceDomainObject): pass
class UserIterationCapacity (WorkspaceDomainObject): pass
class RecycleBinEntry (WorkspaceDomainObject): pass
class RevisionHistory (WorkspaceDomainObject): pass
class ProfileImage (WorkspaceDomainObject): pass
class Revision (WorkspaceDomainObject):
INFO_ATTRS = ['RevisionNumber', 'Description', 'CreationDate', 'User']
def info(self):
rev_num = self.RevisionNumber
desc = self.Description
activity_timestamp = self.CreationDate
whodunit = self.User.Name # self.User.UserName # can't do UserName as context is incomplete...
rev_blurb = " %3d on %s by %s\n %s" % (rev_num, activity_timestamp, whodunit, desc)
return rev_blurb
class WebLinkDefinition(AttributeDefinition): pass
anv = "%s (OID %s FomattedID %s)" % (anv, value.oid, value.FormattedID)
elif isinstance(value, User):
# also want the className, OID, UserName, DisplayName
anv = " %-24s : %s.ref (OID %s UserName %s DisplayName %s)" % \
(attr_name, cln, value.oid, value.UserName, value.DisplayName)
else:
# also want the className, OID, Name)
anv = "%s (OID %s Name %s)" % (anv, value.oid, value.Name)
tank.append(anv)
return "\n".join(tank)
class WorkspaceConfiguration(WorkspaceDomainObject): pass
class Type (WorkspaceDomainObject): pass
class Program (WorkspaceDomainObject): pass
class Project (WorkspaceDomainObject): pass
class Release (WorkspaceDomainObject): pass
class Iteration (WorkspaceDomainObject): pass # query capable only
class ArtifactNotification (WorkspaceDomainObject): pass # query capable only
class AttributeDefinition (WorkspaceDomainObject): pass # query capable only
class TypeDefinition (WorkspaceDomainObject): pass # query capable only
class Attachment (WorkspaceDomainObject): pass
class AttachmentContent (WorkspaceDomainObject): pass
class Build (WorkspaceDomainObject): pass # query capable only
class BuildDefinition (WorkspaceDomainObject): pass # query capable only
class BuildMetric (WorkspaceDomainObject): pass # query capable only
class BuildMetricDefinition (WorkspaceDomainObject): pass # query capable only
class Change (WorkspaceDomainObject): pass
class Changeset (WorkspaceDomainObject): pass
class ConversationPost (WorkspaceDomainObject): pass # query capable only
class FlowState (WorkspaceDomainObject): pass
class Milestone (WorkspaceDomainObject): pass
class Preference (WorkspaceDomainObject): pass
class PreliminaryEstimate (WorkspaceDomainObject): pass
class SCMRepository (WorkspaceDomainObject): pass
class State (WorkspaceDomainObject): pass
class TestCaseStep (WorkspaceDomainObject): pass
class TestCaseResult (WorkspaceDomainObject): pass
class TestFolder (WorkspaceDomainObject): pass
class TestFolderStatus (WorkspaceDomainObject): pass
class Tag (WorkspaceDomainObject): pass
class TimeEntryItem (WorkspaceDomainObject): pass
class TimeEntryValue (WorkspaceDomainObject): pass
class UserIterationCapacity (WorkspaceDomainObject): pass
class RecycleBinEntry (WorkspaceDomainObject): pass
class RevisionHistory (WorkspaceDomainObject): pass
class ProfileImage (WorkspaceDomainObject): pass
class Revision (WorkspaceDomainObject):
INFO_ATTRS = ['RevisionNumber', 'Description', 'CreationDate', 'User']
def info(self):
rev_num = self.RevisionNumber
desc = self.Description
activity_timestamp = self.CreationDate
whodunit = self.User.Name # self.User.UserName # can't do UserName as context is incomplete...
rev_blurb = " %3d on %s by %s\n %s" % (rev_num, activity_timestamp, whodunit, desc)
return rev_blurb
class WebLinkDefinition(AttributeDefinition): pass
class CumulativeFlowData(WorkspaceDomainObject):
""" This is an Abstract Base class """
pass
class ReleaseCumulativeFlowData (CumulativeFlowData): pass
anv = " %-24s : %-27.27s" % (attr_name, cln + '.ref')
if isinstance(value, Artifact):
# also want the OID, FormattedID
anv = "%s (OID %s FomattedID %s)" % (anv, value.oid, value.FormattedID)
elif isinstance(value, User):
# also want the className, OID, UserName, DisplayName
anv = " %-24s : %s.ref (OID %s UserName %s DisplayName %s)" % \
(attr_name, cln, value.oid, value.UserName, value.DisplayName)
else:
# also want the className, OID, Name)
anv = "%s (OID %s Name %s)" % (anv, value.oid, value.Name)
tank.append(anv)
return "\n".join(tank)
class WorkspaceConfiguration(WorkspaceDomainObject): pass
class Type (WorkspaceDomainObject): pass
class Program (WorkspaceDomainObject): pass
class Project (WorkspaceDomainObject): pass
class Release (WorkspaceDomainObject): pass
class Iteration (WorkspaceDomainObject): pass # query capable only
class ArtifactNotification (WorkspaceDomainObject): pass # query capable only
class AttributeDefinition (WorkspaceDomainObject): pass # query capable only
class TypeDefinition (WorkspaceDomainObject): pass # query capable only
class Attachment (WorkspaceDomainObject): pass
class AttachmentContent (WorkspaceDomainObject): pass
class Build (WorkspaceDomainObject): pass # query capable only
class BuildDefinition (WorkspaceDomainObject): pass # query capable only
class BuildMetric (WorkspaceDomainObject): pass # query capable only
class BuildMetricDefinition (WorkspaceDomainObject): pass # query capable only
class Change (WorkspaceDomainObject): pass
class Changeset (WorkspaceDomainObject): pass
(attr_name, cln, value.oid, value.UserName, value.DisplayName)
else:
# also want the className, OID, Name)
anv = "%s (OID %s Name %s)" % (anv, value.oid, value.Name)
tank.append(anv)
return "\n".join(tank)
class WorkspaceConfiguration(WorkspaceDomainObject): pass
class Type (WorkspaceDomainObject): pass
class Program (WorkspaceDomainObject): pass
class Project (WorkspaceDomainObject): pass
class Release (WorkspaceDomainObject): pass
class Iteration (WorkspaceDomainObject): pass # query capable only
class ArtifactNotification (WorkspaceDomainObject): pass # query capable only
class AttributeDefinition (WorkspaceDomainObject): pass # query capable only
class TypeDefinition (WorkspaceDomainObject): pass # query capable only
class Attachment (WorkspaceDomainObject): pass
class AttachmentContent (WorkspaceDomainObject): pass
class Build (WorkspaceDomainObject): pass # query capable only
class BuildDefinition (WorkspaceDomainObject): pass # query capable only
class BuildMetric (WorkspaceDomainObject): pass # query capable only
class BuildMetricDefinition (WorkspaceDomainObject): pass # query capable only
class Change (WorkspaceDomainObject): pass
class Changeset (WorkspaceDomainObject): pass
class ConversationPost (WorkspaceDomainObject): pass # query capable only
class FlowState (WorkspaceDomainObject): pass
class Milestone (WorkspaceDomainObject): pass
class Preference (WorkspaceDomainObject): pass
class PreliminaryEstimate (WorkspaceDomainObject): pass
class SCMRepository (WorkspaceDomainObject): pass
class State (WorkspaceDomainObject): pass
class Program (WorkspaceDomainObject): pass
class Project (WorkspaceDomainObject): pass
class Release (WorkspaceDomainObject): pass
class Iteration (WorkspaceDomainObject): pass # query capable only
class ArtifactNotification (WorkspaceDomainObject): pass # query capable only
class AttributeDefinition (WorkspaceDomainObject): pass # query capable only
class TypeDefinition (WorkspaceDomainObject): pass # query capable only
class Attachment (WorkspaceDomainObject): pass
class AttachmentContent (WorkspaceDomainObject): pass
class Build (WorkspaceDomainObject): pass # query capable only
class BuildDefinition (WorkspaceDomainObject): pass # query capable only
class BuildMetric (WorkspaceDomainObject): pass # query capable only
class BuildMetricDefinition (WorkspaceDomainObject): pass # query capable only
class Change (WorkspaceDomainObject): pass
class Changeset (WorkspaceDomainObject): pass
class ConversationPost (WorkspaceDomainObject): pass # query capable only
class FlowState (WorkspaceDomainObject): pass
class Milestone (WorkspaceDomainObject): pass
class Preference (WorkspaceDomainObject): pass
class PreliminaryEstimate (WorkspaceDomainObject): pass
class SCMRepository (WorkspaceDomainObject): pass
class State (WorkspaceDomainObject): pass
class TestCaseStep (WorkspaceDomainObject): pass
class TestCaseResult (WorkspaceDomainObject): pass
class TestFolder (WorkspaceDomainObject): pass
class TestFolderStatus (WorkspaceDomainObject): pass
class Tag (WorkspaceDomainObject): pass
class TimeEntryItem (WorkspaceDomainObject): pass
class TimeEntryValue (WorkspaceDomainObject): pass
class UserIterationCapacity (WorkspaceDomainObject): pass
class RecycleBinEntry (WorkspaceDomainObject): pass
class RevisionHistory (WorkspaceDomainObject): pass
tank.append(anv)
return "\n".join(tank)
class WorkspaceConfiguration(WorkspaceDomainObject): pass
class Type (WorkspaceDomainObject): pass
class Program (WorkspaceDomainObject): pass
class Project (WorkspaceDomainObject): pass
class Release (WorkspaceDomainObject): pass
class Iteration (WorkspaceDomainObject): pass # query capable only
class ArtifactNotification (WorkspaceDomainObject): pass # query capable only
class AttributeDefinition (WorkspaceDomainObject): pass # query capable only
class TypeDefinition (WorkspaceDomainObject): pass # query capable only
class Attachment (WorkspaceDomainObject): pass
class AttachmentContent (WorkspaceDomainObject): pass
class Build (WorkspaceDomainObject): pass # query capable only
class BuildDefinition (WorkspaceDomainObject): pass # query capable only
class BuildMetric (WorkspaceDomainObject): pass # query capable only
class BuildMetricDefinition (WorkspaceDomainObject): pass # query capable only
class Change (WorkspaceDomainObject): pass
class Changeset (WorkspaceDomainObject): pass
class ConversationPost (WorkspaceDomainObject): pass # query capable only
class FlowState (WorkspaceDomainObject): pass
class Milestone (WorkspaceDomainObject): pass
class Preference (WorkspaceDomainObject): pass
class PreliminaryEstimate (WorkspaceDomainObject): pass
class SCMRepository (WorkspaceDomainObject): pass
class State (WorkspaceDomainObject): pass
class TestCaseStep (WorkspaceDomainObject): pass
class TestCaseResult (WorkspaceDomainObject): pass
class TestFolder (WorkspaceDomainObject): pass
class TestFolderStatus (WorkspaceDomainObject): pass