Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
Move from using static/ to using fanstatic.
Browse files Browse the repository at this point in the history
  • Loading branch information
janjaapdriessen committed Jan 3, 2011
1 parent 6223d6a commit fd68005
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/grokui/base/layout.py
@@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-

import megrok.menu
import grokcore.view as grok

from grokui.base import IGrokUIRealm, GrokUILayer, IUIPanel, MainMenu
from grokui.base import resource
from megrok.layout import Layout, Page
from zope.traversing.browser.absoluteurl import absoluteURL

Expand All @@ -17,6 +16,7 @@ class GrokUILayout(Layout):
title = u"Grok User Interface"

def update(self):
resource.grok_css.need()
self.baseurl = absoluteURL(self.context, self.request) + '/'


Expand Down
2 changes: 0 additions & 2 deletions src/grokui/base/layout_templates/grokuilayout.pt
Expand Up @@ -2,8 +2,6 @@
<head>
<title tal:content="layout/title" />
<base tal:attributes="href layout/baseurl" />
<link rel="stylesheet" type="text/css"
tal:attributes="href static/grok.css" />
<link rel="shortcut icon" type="image/x-icon"
tal:attributes="href static/favicon.ico" />
</head>
Expand Down
4 changes: 3 additions & 1 deletion src/grokui/base/resource.py
@@ -1,3 +1,5 @@
from fanstatic import Library
from fanstatic import Library, Resource

library = Library('grokui.base', 'static')

grok_css = Resource(library, 'grok.css')

0 comments on commit fd68005

Please sign in to comment.