Package ajango :: Package site :: Package sites :: Class SiteBase
[hide private]
[frames] | no frames]

Class SiteBase

source code

object --+
         |
        SiteBase
Known Subclasses:

Abstrakcyjna klasa obslugujaca strone.

Nested Classes [hide private]
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods [hide private]
 
__init__(self, ob)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
content(self)
Ustawienie zmiennych dostarczanych do szblonow.
source code
 
init(self)
Metoda inicjalizujaca.
source code
 
make_content(self)
Metoda wywolywana przez zewnetrzny interface.
source code
 
make_content_and_get_data(self)
Buduje dane kontentu i zwraca informacje na temat danych utworzonych przez strone.
source code
 
make_site(self)
Wywolaj renderowanie strony.
source code
 
set_header(self, text)
Ustaw tytul sekcji.
source code
 
set_include(self, text)
Ustawienie glownego pliku ze strona odpowiedniego dla strony.
source code
 
set_layout(self, html)
Ustawienie pliku layoutu.
source code
 
set_menu(self, tab)
Ustawienie menu.
source code
 
set_theme(self, theme)
Ustawienie tematu layoutu.
source code
 
set_title(self, text)
Ustaw tytul strony.
source code
 
set_view_id(self, view_id)
Zmiana id widoku niezbedna przy obsludze wiekszej ilosci widokow.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __abstractmethods__ = frozenset(['content', 'init'])
  _abc_cache = <_weakrefset.WeakSet object>
  _abc_negative_cache = <_weakrefset.WeakSet object>
  _abc_negative_cache_version = 27
  _abc_registry = <_weakrefset.WeakSet object>
  global_view_id_counter = 0
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ob)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

content(self)

source code 

Ustawienie zmiennych dostarczanych do szblonow.

Decorators:
  • @abstractmethod

init(self)

source code 

Metoda inicjalizujaca.

Decorators:
  • @abstractmethod

make_site(self)

source code 

Wywolaj renderowanie strony.

Zwraca informacje jakie powinny byc tworzone w plikach view.py frameworku Django.

set_theme(self, theme)

source code 

Ustawienie tematu layoutu.

Ajango wczytuje pliku html z folderu oznaczonego przez zmienna ustawiana w tej funkcji. System pobiera pliki o nazwach okreslonych na podstawie dokumentacji, ale mozna je umiescic w pakietach o nazwach podanych w zmiennej.