Exemplo n.º 1
0
 def remove_relation(self):
     try:
         from .Handler import RelatedListAPIHandler
     except ImportError:
         from Handler import RelatedListAPIHandler
     return RelatedListAPIHandler.get_instance(
         self.parent_record, self.junction_record).remove_relation()
Exemplo n.º 2
0
 def delete_note(self, zcrm_note_ins):
     try:
         from .Handler import RelatedListAPIHandler
     except ImportError:
         from Handler import RelatedListAPIHandler
     return RelatedListAPIHandler.get_instance(
         self.parent_record, self).delete_note(zcrm_note_ins)
Exemplo n.º 3
0
 def delete_attachment(self, attachment_id):
     try:
         from .Handler import RelatedListAPIHandler
     except ImportError:
         from Handler import RelatedListAPIHandler
     return RelatedListAPIHandler.get_instance(
         self.parent_record, self).delete_attachment(attachment_id)
Exemplo n.º 4
0
 def upload_link_as_attachment(self, link_url):
     try:
         from .Handler import RelatedListAPIHandler
     except ImportError:
         from Handler import RelatedListAPIHandler
     return RelatedListAPIHandler.get_instance(
         self.parent_record, self).upload_link_as_attachment(link_url)
Exemplo n.º 5
0
 def upload_attachment(self, file_path):
     try:
         from .Handler import RelatedListAPIHandler
     except ImportError:
         from Handler import RelatedListAPIHandler
     return RelatedListAPIHandler.get_instance(
         self.parent_record, self).upload_attachment(file_path)
Exemplo n.º 6
0
 def get_attachments(self, page, per_page):
     try:
         from .Handler import RelatedListAPIHandler
     except ImportError:
         from Handler import RelatedListAPIHandler
     return RelatedListAPIHandler.get_instance(self.parent_record,
                                               self).get_attachments(
                                                   page, per_page)
Exemplo n.º 7
0
 def get_notes(self, sort_by, sort_order, page, per_page):
     try:
         from .Handler import RelatedListAPIHandler
     except ImportError:
         from Handler import RelatedListAPIHandler
     return RelatedListAPIHandler.get_instance(
         self.parent_record, self).get_notes(sort_by, sort_order, page,
                                             per_page)
Exemplo n.º 8
0
 def get_records(self,
                 sort_by_field=None,
                 sort_order=None,
                 page=1,
                 per_page=20):
     from Handler import RelatedListAPIHandler
     return RelatedListAPIHandler.get_instance(
         self.parent_record, self).get_records(sort_by_field, sort_order,
                                               page, per_page)
Exemplo n.º 9
0
 def update_note(self, zcrm_note_ins):
     from Handler import RelatedListAPIHandler
     return RelatedListAPIHandler.get_instance(
         self.parent_record, self).update_note(zcrm_note_ins)
Exemplo n.º 10
0
 def add_relation(self):
     from Handler import RelatedListAPIHandler
     return RelatedListAPIHandler.get_instance(
         self.parent_record, self.junction_record).add_relation()
Exemplo n.º 11
0
 def download_attachment(self, attachment_id):
     from Handler import RelatedListAPIHandler
     return RelatedListAPIHandler.get_instance(
         self.parent_record, self).download_attachment(attachment_id)