- return '<PTEntry: %s>' % self.id
-
-cdef int _ptentry_from_checkentry(PTEntry p_entry, prcheckentry c_entry) except -1:
- if p_entry is None:
- raise TypeError
- return -1
-
- p_entry.flags = c_entry.flags
- p_entry.id = c_entry.id
- p_entry.owner = c_entry.owner
- p_entry.creator = c_entry.creator
- p_entry.ngroups = c_entry.ngroups
- p_entry.nusers = c_entry.nusers
- p_entry.count = c_entry.count
- return 0
-
-cdef int _ptentry_to_checkentry(prcheckentry * c_entry, PTEntry p_entry) except -1:
- if p_entry is None:
- raise TypeError
- return -1
-
- c_entry.flags = p_entry.flags
- c_entry.id = p_entry.id
- c_entry.owner = p_entry.owner
- c_entry.creator = p_entry.creator
- c_entry.ngroups = p_entry.ngroups
- c_entry.nusers = p_entry.nusers
- c_entry.count = p_entry.count
- return 0