Commit b7afeeb8 by aagusti

readme

1 parent 336c590b
...@@ -168,20 +168,25 @@ Tambahkan blok berikut ini dibawah ini file ...@@ -168,20 +168,25 @@ Tambahkan blok berikut ini dibawah ini file
``` ```
## Google Integrated ## Google Integrated dan Custom Register Form
Aplikasi sudah bisa terintegrsi dengan google oauth2 Aplikasi sudah bisa terintegrsi dengan google oauth2
# Setting Configurasi # Setting Configurasi
``` ```
allow_register = True allow_register = True
google-signin-client-id = id oauth2 client dari google google-signin-client-id = id oauth2 client dari google
register_form = # nama form buat registrasi default /register
``` ```
# RML Reporting # RML Reporting
Untuk aktivasi harus terdapat konfigurasi berikut ini Untuk aktivasi harus terdapat konfigurasi berikut ini
# Setting Configurasi # Setting Configurasi
``` ```
report_img = "fisik path opensipkd_base:static/img" report_img = # fisik path default "opensipkd_base:static/img"
``` ```
Install :
```
$pip install z3c.rml
```
...@@ -399,8 +399,6 @@ class RegistrasiAdd(BaseView): ...@@ -399,8 +399,6 @@ class RegistrasiAdd(BaseView):
def view_add(self): def view_add(self):
request = self.req request = self.req
if request.user: if request.user:
# partner = Partner.query_user_id(request.user.id).first()
# if partner:
return HTTPFound(location=request.route_url("profile")) return HTTPFound(location=request.route_url("profile"))
form = get_form(request, RegSchema, reg_buttons()) form = get_form(request, RegSchema, reg_buttons())
...@@ -419,6 +417,7 @@ class RegistrasiAdd(BaseView): ...@@ -419,6 +417,7 @@ class RegistrasiAdd(BaseView):
return dict(form=form.render(), captcha=captcha, scripts="") return dict(form=form.render(), captcha=captcha, scripts="")
values = dict(controls) values = dict(controls)
path = get_params('reg_folder', '/tmp/registrasi') path = get_params('reg_folder', '/tmp/registrasi')
if not os.path.exists(path): if not os.path.exists(path):
os.makedirs(path) os.makedirs(path)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!