How to use the pyral.entity.Artifact function in pyral

To help you get started, we’ve selected a few pyral examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RallyTools / RallyRestToolkitForPython / pyral / entity.py View on Github external
class Requirement  (SchedulableArtifact):
    """ This is an Abstract Base class """
    pass
class HierarchicalRequirement(Requirement): pass

UserStory = HierarchicalRequirement   # synonomous but more intutive
Story     = HierarchicalRequirement   # ditto

class Task         (Artifact): pass
class Defect       (Artifact): pass
class TestCase     (Artifact): pass
class DefectSuite  (SchedulableArtifact): pass
class TestSet      (SchedulableArtifact): pass

class PortfolioItem(Artifact): pass
class PortfolioItem_Strategy  (PortfolioItem): pass
class PortfolioItem_Initiative(PortfolioItem): pass
class PortfolioItem_Theme     (PortfolioItem): pass
class PortfolioItem_Feature   (PortfolioItem): pass

class Connection(WorkspaceDomainObject):

    MINIMAL_WDO_ATTRIBUTES = ['_type',
                         'oid', 'ref', 'ObjectID', 'ObjectUUID', '_ref',
                         '_CreatedAt', '_hydrated', 'Subscription', 'Workspace']
    CONNECTION_INFO_ATTRIBUTES = ['ExternalId', 'ExternalFormattedId', 'Name', 'Description', 'Url', 'Artifact']

    def details(self):
        tank = ['%s' % self._type]
        for attribute_name in (Connection.MINIMAL_WDO_ATTRIBUTES + Connection.CONNECTION_INFO_ATTRIBUTES):
            try:
github RallyTools / RallyRestToolkitForPython / pyral / entity.py View on Github external
return rev_blurb

class WebLinkDefinition(AttributeDefinition): pass

class CumulativeFlowData(WorkspaceDomainObject):
    """ This is an Abstract Base class """
    pass

class ReleaseCumulativeFlowData  (CumulativeFlowData): pass
class IterationCumulativeFlowData(CumulativeFlowData): pass

class Artifact(WorkspaceDomainObject): 
    """ This is an Abstract Base class """
    pass

class SchedulableArtifact(Artifact):
    """ This is an Abstract Base class """ 
    pass

class Requirement  (SchedulableArtifact):
    """ This is an Abstract Base class """
    pass
class HierarchicalRequirement(Requirement): pass

UserStory = HierarchicalRequirement   # synonomous but more intutive
Story     = HierarchicalRequirement   # ditto

class Task         (Artifact): pass
class Defect       (Artifact): pass
class TestCase     (Artifact): pass
class DefectSuite  (SchedulableArtifact): pass
class TestSet      (SchedulableArtifact): pass
github RallyTools / RallyRestToolkitForPython / pyral / entity.py View on Github external
##
                continue
            attr_name = attribute_name
            if attribute_name.startswith('c_'):
                attr_name = attribute_name[2:]
            if not isinstance(value, Persistable):
                anv = "    %-24s  : %s" % (attr_name, value)
            else:
                mo = re.search(r' \'pyral.entity.(\w+)\'>', str(type(value)))
                if not mo:
                    anv = "    %-24s : %s" % (attr_name, value)
                    continue

                cln = mo.group(1)
                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)
github RallyTools / RallyRestToolkitForPython / pyral / entity.py View on Github external
class SchedulableArtifact(Artifact):
    """ This is an Abstract Base class """ 
    pass

class Requirement  (SchedulableArtifact):
    """ This is an Abstract Base class """
    pass
class HierarchicalRequirement(Requirement): pass

UserStory = HierarchicalRequirement   # synonomous but more intutive
Story     = HierarchicalRequirement   # ditto

class Task         (Artifact): pass
class Defect       (Artifact): pass
class TestCase     (Artifact): pass
class DefectSuite  (SchedulableArtifact): pass
class TestSet      (SchedulableArtifact): pass

class PortfolioItem(Artifact): pass
class PortfolioItem_Strategy  (PortfolioItem): pass
class PortfolioItem_Initiative(PortfolioItem): pass
class PortfolioItem_Theme     (PortfolioItem): pass
class PortfolioItem_Feature   (PortfolioItem): pass

class Connection(WorkspaceDomainObject):

    MINIMAL_WDO_ATTRIBUTES = ['_type',
                         'oid', 'ref', 'ObjectID', 'ObjectUUID', '_ref',
                         '_CreatedAt', '_hydrated', 'Subscription', 'Workspace']
    CONNECTION_INFO_ATTRIBUTES = ['ExternalId', 'ExternalFormattedId', 'Name', 'Description', 'Url', 'Artifact']
github RallyTools / RallyRestToolkitForPython / pyral / entity.py View on Github external
'DomainObject'            : DomainObject,
             'WorkspaceDomainObject'   : WorkspaceDomainObject,
             'Subscription'            : Subscription,
             'User'                    : User,
             'UserProfile'             : UserProfile,
             'UserPermission'          : UserPermission,
             'Workspace'               : Workspace,
             'WorkspaceConfiguration'  : WorkspaceConfiguration,
             'WorkspacePermission'     : WorkspacePermission,
             'Type'                    : Type,
             'TypeDefinition'          : TypeDefinition,
             'AttributeDefinition'     : AttributeDefinition,
             'Program'                 : Program,
             'Project'                 : Project,
             'ProjectPermission'       : ProjectPermission,
             'Artifact'                : Artifact,
             'ArtifactNotification'    : ArtifactNotification,
             'Release'                 : Release,
             'Iteration'               : Iteration,
             'Requirement'             : Requirement,
             'HierarchicalRequirement' : HierarchicalRequirement,
             'UserStory'               : UserStory,
             'Story'                   : Story,
             'Task'                    : Task,
             'Tag'                     : Tag,
             'Preference'              : Preference,
             'SCMRepository'           : SCMRepository,
             'RevisionHistory'         : RevisionHistory,
             'ProfileImage'            : ProfileImage,
             'Revision'                : Revision,
             'Attachment'              : Attachment,
             'AttachmentContent'       : AttachmentContent,
github RallyTools / RallyRestToolkitForPython / pyral / entity.py View on Github external
pass

class SchedulableArtifact(Artifact):
    """ This is an Abstract Base class """ 
    pass

class Requirement  (SchedulableArtifact):
    """ This is an Abstract Base class """
    pass
class HierarchicalRequirement(Requirement): pass

UserStory = HierarchicalRequirement   # synonomous but more intutive
Story     = HierarchicalRequirement   # ditto

class Task         (Artifact): pass
class Defect       (Artifact): pass
class TestCase     (Artifact): pass
class DefectSuite  (SchedulableArtifact): pass
class TestSet      (SchedulableArtifact): pass

class PortfolioItem(Artifact): pass
class PortfolioItem_Strategy  (PortfolioItem): pass
class PortfolioItem_Initiative(PortfolioItem): pass
class PortfolioItem_Theme     (PortfolioItem): pass
class PortfolioItem_Feature   (PortfolioItem): pass

class Connection(WorkspaceDomainObject):

    MINIMAL_WDO_ATTRIBUTES = ['_type',
                         'oid', 'ref', 'ObjectID', 'ObjectUUID', '_ref',
                         '_CreatedAt', '_hydrated', 'Subscription', 'Workspace']
    CONNECTION_INFO_ATTRIBUTES = ['ExternalId', 'ExternalFormattedId', 'Name', 'Description', 'Url', 'Artifact']
github RallyTools / RallyRestToolkitForPython / pyral / entity.py View on Github external
""" This is an Abstract Base class """
    pass

class SchedulableArtifact(Artifact):
    """ This is an Abstract Base class """ 
    pass

class Requirement  (SchedulableArtifact):
    """ This is an Abstract Base class """
    pass
class HierarchicalRequirement(Requirement): pass

UserStory = HierarchicalRequirement   # synonomous but more intutive
Story     = HierarchicalRequirement   # ditto

class Task         (Artifact): pass
class Defect       (Artifact): pass
class TestCase     (Artifact): pass
class DefectSuite  (SchedulableArtifact): pass
class TestSet      (SchedulableArtifact): pass

class PortfolioItem(Artifact): pass
class PortfolioItem_Strategy  (PortfolioItem): pass
class PortfolioItem_Initiative(PortfolioItem): pass
class PortfolioItem_Theme     (PortfolioItem): pass
class PortfolioItem_Feature   (PortfolioItem): pass

class Connection(WorkspaceDomainObject):

    MINIMAL_WDO_ATTRIBUTES = ['_type',
                         'oid', 'ref', 'ObjectID', 'ObjectUUID', '_ref',
                         '_CreatedAt', '_hydrated', 'Subscription', 'Workspace']