def __init__(self, current): CrudView.__init__(self, current) if 'object_id' in self.current.task_data and self.cmd == 'add_edit_form' and \ 'object_id' not in self.input: del self.current.task_data['object_id'] self.object = BAPSSS() self.object_form = SSSAddEditForm(self.object, current=self.current)
def __init__(self, current): CrudView.__init__(self, current) if 'object_id' in self.current.task_data and self.cmd == 'add_edit_form' and \ 'object_id' not in self.input: del self.current.task_data['object_id'] self.object = BAPIsPaketi() if 'iptal' in current.task_data['cmd'] and 'IsPaketiHazirlaForm' in self.current.task_data: del current.task_data['IsPaketiHazirlaForm']
def __init__(self, current): CrudView.__init__(self, current) if not self.object.key: self.object = self.model_class.objects.get( self.current.task_data.get('bap_proje_id', self.input.pop('object_id', ''))) self.current.output["meta"]["allow_search"] = False # Genel form, bu nesneyi extend eden digerleri tarafindan degistirilebilsin # bkz: bap_ogrbasvuru_goruntule.py self.genel_form = GenelProjeForm
def __init__(self, current=None): CrudView.__init__(self, current) self.ListForm.add = None
def __init__(self, current): self.ObjectForm = SaglikRaporuForm CrudView.__init__(self, current) if 'personel_id' not in self.current.task_data: self.current.task_data["personel_id"] = self.current.input["id"]
def __init__(self, current): CrudView.__init__(self, current) if self.cmd != 'confirm_deletion' and self.cmd != 'delete' \ and 'object_id' in self.current.task_data: del self.current.task_data['object_id']
def __init__(self, current=None): CrudView.__init__(self, current) self.ListForm.add = None self.model_class.Meta.verbose_name_plural = __( u"Firma Başvuru Değerlendirmeleri")
def __init__(self, current=None): CrudView.__init__(self, current) self.ListForm.add = fields.Button(__(u"Tekliflerimi Göster"), cmd='tekliflerim') self.model_class.Meta.verbose_name_plural = __(u"Teklife Açık Bütçe Kalemi Satın Almaları") self.firma = self.current.user.bap_firma_set[0].bap_firma
def __init__(self, current): CrudView.__init__(self, current) if 'object_id' in self.current.task_data and self.cmd == 'add_edit_form' and \ 'object_id' not in self.input: del self.current.task_data['object_id'] self.object = BAPTakvim()
def __init__(self, current): CrudView.__init__(self, current) if not self.object.key: self.object = self.model_class.objects.get( self.current.task_data['bap_proje_id'])
def __init__(self, current): CrudView.__init__(self, current) if 'personel_id' not in self.current.task_data: self.current.task_data["personel_id"] = self.current.input["id"]