equal
deleted
inserted
replaced
19 '"Madhusudan C.S." <madhusudancs@gmail.com>', |
19 '"Madhusudan C.S." <madhusudancs@gmail.com>', |
20 '"Lennard de Rijk" <ljvderijk@gmail.com>', |
20 '"Lennard de Rijk" <ljvderijk@gmail.com>', |
21 ] |
21 ] |
22 |
22 |
23 |
23 |
|
24 from soc.modules.ghop.views.models import program |
|
25 |
|
26 |
24 class Callback(object): |
27 class Callback(object): |
25 """Callback object that handles interaction between the core. |
28 """Callback object that handles interaction between the core. |
26 """ |
29 """ |
27 |
30 |
28 API_VERSION = 1 |
31 API_VERSION = 1 |
37 """Called by the server when sitemap entries should be registered. |
40 """Called by the server when sitemap entries should be registered. |
38 """ |
41 """ |
39 |
42 |
40 self.core.requireUniqueService('registerWithSitemap') |
43 self.core.requireUniqueService('registerWithSitemap') |
41 |
44 |
|
45 self.core.registerSitemapEntry(program.view.getDjangoURLPatterns()) |
|
46 |
42 def registerWithSidebar(self): |
47 def registerWithSidebar(self): |
43 """Called by the server when sidebar entries should be registered. |
48 """Called by the server when sidebar entries should be registered. |
44 """ |
49 """ |
45 |
50 |
46 # require that we had the chance to register the urls we need with the sitemap |
51 # require that we had the chance to register the urls we need with the sitemap |
47 self.core.requireUniqueService('registerWithSidebar') |
52 self.core.requireUniqueService('registerWithSidebar') |
|
53 |
|
54 self.core.registerSidebarEntry(program.view.getSidebarMenus) |
|
55 |