Ejemplo n.º 1
0
 def current_user(self):
     """Gets the current user."""
     if self.is_property_available('CurrentUser'):
         return self.properties['CurrentUser']
     else:
         return User(self.context,
                     ResourcePath("CurrentUser", self.resource_path))
Ejemplo n.º 2
0
 def parentWeb(self):
     """Gets the parent website of the specified website."""
     if self.is_property_available('ParentWeb'):
         return self.properties['ParentWeb']
     else:
         return User(self.context,
                     ResourcePath("ParentWeb", self.resource_path))
Ejemplo n.º 3
0
 def owner(self):
     """Gets or sets the owner of the site collection. (Read-only in sandboxed solutions.)"""
     if self.is_property_available('owner'):
         return self.properties['owner']
     else:
         return User(self.context, ResourcePath("owner",
                                                self.resource_path))
Ejemplo n.º 4
0
    def modified_by(self):
        """
        Gets a value that returns the user who last modified the file.

        :rtype: office365.sharepoint.directory.user.User
        """
        return self.properties.get(
            "ModifiedBy",
            User(self.context, ResourcePath("ModifiedBy", self.resource_path)))
Ejemplo n.º 5
0
    def locked_by_user(self):
        """
        Gets a value that returns the user that owns the current lock on the file.

        :rtype: office365.sharepoint.directory.user.User
        """
        return self.properties.get(
            "LockedByUser",
            User(self.context, ResourcePath("LockedByUser",
                                            self.resource_path)))
 def created_by(self):
     """Gets the user that created the file version."""
     from office365.sharepoint.principal.user import User
     return self.properties.get("CreatedBy", User(self.context, ResourcePath("CreatedBy", self.resource_path)))
Ejemplo n.º 7
0
 def author(self):
     """Specifies the user who created the list."""
     return self.properties.get(
         'Author',
         User(self.context, ResourcePath("Author", self.resource_path)))
Ejemplo n.º 8
0
 def user(self):
     """Gets the SharePoint user who created this subscriber."""
     from office365.sharepoint.principal.user import User
     return self.properties.get("User", User(self.context, ResourcePath("user", self.resource_path)))
 def checked_out_by(self):
     """Returns the user name of the account used to check out the file."""
     return self.properties.get(
         'CheckedOutBy',
         User(self.context, ResourcePath("CheckedOutBy",
                                         self.resource_path)))
Ejemplo n.º 10
0
 def user(self):
     """Gets user object that represents User for the alert."""
     from office365.sharepoint.principal.user import User
     return self.properties.get(
         'User', User(self.context, ResourcePath("user",
                                                 self.resource_path)))
Ejemplo n.º 11
0
 def secondary_contact(self):
     """Gets or sets the secondary contact that is used for the site collection."""
     return self.properties.get('SecondaryContact', User(self.context,
                                                         ResourcePath("SecondaryContact", self.resource_path)))
Ejemplo n.º 12
0
 def owner(self):
     """Gets or sets the owner of the site collection. (Read-only in sandboxed solutions.)"""
     return self.properties.get('owner', User(self.context, ResourcePath("owner", self.resource_path)))
Ejemplo n.º 13
0
 def user(self):
     """The SP.User object for the current request."""
     from office365.sharepoint.principal.user import User
     return self.properties.get(
         "User", User(self.context, ResourcePath("User",
                                                 self.resource_path)))
 def user(self):
     """
     Specifies the user with whom a securable object is shared.
     """
     return self.properties.get('User',
                                User(self.context, ResourcePath("User", self.resource_path)))
Ejemplo n.º 15
0
 def checked_out_by_user(self):
     """Gets an object that represents the user who has checked out the file."""
     return self.properties.get(
         'CheckedOutByUser',
         User(self.context,
              ResourcePath("CheckedOutByUser", self.resource_path)))