Package ajango :: Package generator :: Package views :: Module display
[hide private]
[frames] | no frames]

Source Code for Module ajango.generator.views.display

 1  ########################################################################### 
 2  #                                                                         # 
 3  #  Copyright (C) 2016  Rafal Kobel <rafyco1@gmail.com>                    # 
 4  #                                                                         # 
 5  #  This program is free software: you can redistribute it and/or modify   # 
 6  #  it under the terms of the GNU General Public License as published by   # 
 7  #  the Free Software Foundation, either version 3 of the License, or      # 
 8  #  (at your option) any later version.                                    # 
 9  #                                                                         # 
10  #  This program is distributed in the hope that it will be useful,        # 
11  #  but WITHOUT ANY WARRANTY; without even the implied warranty of         # 
12  #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the           # 
13  #  GNU General Public License for more details.                           # 
14  #                                                                         # 
15  #  You should have received a copy of the GNU General Public License      # 
16  #  along with this program.  If not, see <http://www.gnu.org/licenses/>.  # 
17  #                                                                         # 
18  ########################################################################### 
19  """ 
20  Obiekt generujacy strone typu 'display'. 
21   
22  Obiekt generuje kod obsugujacy strone wyswietlajaca kod z rekordem bazy danych. 
23  Obiekt do wyswietlenia okreslany jest przez podanie C{id} odpowieniej 
24  pozycji w adresie strony. 
25   
26  Dostepne znaczniki 
27  ================== 
28   
29      1. B{QUERY} - Zapytanie o dane. L{wiecej <ajango.database.query>}. 
30      2. B{COLUMN} - Kolumna z danymi L{wiecej <ajango.database.columns>}. 
31   
32  Generowany obiekt 
33  ================= 
34   
35  L{ajango.site.sites.display} 
36  """ 
37   
38  from ajango.generator.views.list import View as List 
39   
40 -class View(List):
41 """ Klasa widoku wyswietlajacego. """
42 - def init(self):
43 """ Metoda inicjalizujaca. """ 44 List.init(self) 45 self.type = "display"
46