Exemple #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()
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #10
0
 def add_relation(self):
     from Handler import RelatedListAPIHandler
     return RelatedListAPIHandler.get_instance(
         self.parent_record, self.junction_record).add_relation()
Exemple #11
0
 def download_attachment(self, attachment_id):
     from Handler import RelatedListAPIHandler
     return RelatedListAPIHandler.get_instance(
         self.parent_record, self).download_attachment(attachment_id)