|
@ -26,6 +26,7 @@ from distribusimodel import Distribusis |
|
|
from forms.uploadform import UploadForm |
|
|
from forms.uploadform import UploadForm |
|
|
from forms.distribusiform import DistribusiForm |
|
|
from forms.distribusiform import DistribusiForm |
|
|
from forms.themeform import ThemeForm |
|
|
from forms.themeform import ThemeForm |
|
|
|
|
|
from forms.publicthemeform import PublicThemeForm |
|
|
from forms.selectorform import SelectorForm |
|
|
from forms.selectorform import SelectorForm |
|
|
|
|
|
|
|
|
# CRUD! |
|
|
# CRUD! |
|
@ -105,7 +106,8 @@ def distribusi(): |
|
|
uploadform = UploadForm() |
|
|
uploadform = UploadForm() |
|
|
distribusiform = DistribusiForm() |
|
|
distribusiform = DistribusiForm() |
|
|
themeform = ThemeForm() |
|
|
themeform = ThemeForm() |
|
|
themeform.publicthemes.choices = DistribusisInfo.publicthemes() |
|
|
publicthemeform = PublicThemeForm() |
|
|
|
|
|
publicthemeform.publicthemes.choices = DistribusisInfo.publicthemes() |
|
|
selectorform = SelectorForm() |
|
|
selectorform = SelectorForm() |
|
|
selectorform.distribusis.choices = DistribusisInfo.userdistribusis() |
|
|
selectorform.distribusis.choices = DistribusisInfo.userdistribusis() |
|
|
|
|
|
|
|
@ -152,6 +154,7 @@ def distribusi(): |
|
|
uploadform=uploadform, |
|
|
uploadform=uploadform, |
|
|
distribusiform=distribusiform, |
|
|
distribusiform=distribusiform, |
|
|
themeform=themeform, |
|
|
themeform=themeform, |
|
|
|
|
|
publicthemeform=publicthemeform, |
|
|
selectorform=selectorform, |
|
|
selectorform=selectorform, |
|
|
files_uploaded=files_uploaded, |
|
|
files_uploaded=files_uploaded, |
|
|
distribusi_live=distribusi_live, |
|
|
distribusi_live=distribusi_live, |
|
@ -166,7 +169,8 @@ def distribusi(): |
|
|
def upload(): |
|
|
def upload(): |
|
|
distribusiform = DistribusiForm() |
|
|
distribusiform = DistribusiForm() |
|
|
themeform = ThemeForm() |
|
|
themeform = ThemeForm() |
|
|
themeform.publicthemes.choices = DistribusisInfo.publicthemes() |
|
|
publicthemeform = PublicThemeForm() |
|
|
|
|
|
publicthemeform.publicthemes.choices = DistribusisInfo.publicthemes() |
|
|
selectorform = SelectorForm() |
|
|
selectorform = SelectorForm() |
|
|
selectorform.distribusis.choices = DistribusisInfo.userdistribusis() |
|
|
selectorform.distribusis.choices = DistribusisInfo.userdistribusis() |
|
|
selectorvisible = SelectorVisible() |
|
|
selectorvisible = SelectorVisible() |
|
@ -183,6 +187,7 @@ def upload(): |
|
|
uploadform=uploadform, |
|
|
uploadform=uploadform, |
|
|
distribusiform=distribusiform, |
|
|
distribusiform=distribusiform, |
|
|
themeform=themeform, |
|
|
themeform=themeform, |
|
|
|
|
|
publicthemeform=publicthemeform, |
|
|
selectorform=selectorform, |
|
|
selectorform=selectorform, |
|
|
files_uploaded=files_uploaded, |
|
|
files_uploaded=files_uploaded, |
|
|
distribusi_live=distribusi_live, |
|
|
distribusi_live=distribusi_live, |
|
@ -211,7 +216,8 @@ def selector(): |
|
|
uploadform = UploadForm() |
|
|
uploadform = UploadForm() |
|
|
distribusiform = DistribusiForm() |
|
|
distribusiform = DistribusiForm() |
|
|
themeform = ThemeForm() |
|
|
themeform = ThemeForm() |
|
|
themeform.publicthemes.choices = DistribusisInfo.publicthemes() |
|
|
publicthemeform = PublicThemeForm() |
|
|
|
|
|
publicthemeform.publicthemes.choices = DistribusisInfo.publicthemes() |
|
|
selectorform = SelectorForm() |
|
|
selectorform = SelectorForm() |
|
|
selectorform.distribusis.choices = DistribusisInfo.userdistribusis() |
|
|
selectorform.distribusis.choices = DistribusisInfo.userdistribusis() |
|
|
current_distribusi = CurrentDistribusi() |
|
|
current_distribusi = CurrentDistribusi() |
|
@ -250,6 +256,7 @@ def selector(): |
|
|
uploadform=uploadform, |
|
|
uploadform=uploadform, |
|
|
distribusiform=distribusiform, |
|
|
distribusiform=distribusiform, |
|
|
themeform=themeform, |
|
|
themeform=themeform, |
|
|
|
|
|
publicthemeform=publicthemeform, |
|
|
selectorform=selectorform, |
|
|
selectorform=selectorform, |
|
|
files_uploaded=files_uploaded, |
|
|
files_uploaded=files_uploaded, |
|
|
distribusi_live=distribusi_live, |
|
|
distribusi_live=distribusi_live, |
|
|