witten
/
luminotes
Archived
1
0
Fork 0

Introduced cache-busting code to make pages update more reliably after a new release.

Added initial (untested) support for Internet Explorer 8 beta.
This commit is contained in:
Dan Helfman 2009-02-11 01:58:14 -08:00
parent 60e66dfded
commit e96235b197
10 changed files with 33 additions and 21 deletions

5
NEWS
View File

@ -1,3 +1,8 @@
1.6.3: February 11, 2009
* Introduced cache-busting code to make pages update more reliably after a
new release.
* Added initial (untested) support for Internet Explorer 8 beta.
1.6.2: February 11, 2009 1.6.2: February 11, 2009
* Added drag-and-drop note reordering. * Added drag-and-drop note reordering.
* Fixed a visual bug in which a second title within a note had insufficient * Fixed a visual bug in which a second title within a note had insufficient

View File

@ -1 +1 @@
VERSION = u"1.6.2" VERSION = u"1.6.3"

View File

@ -1,4 +1,5 @@
from Tags import Html, Head, Body, Script from Tags import Html, Head, Body, Script
from config.Version import VERSION
class Blank_page( Html ): class Blank_page( Html ):
@ -7,7 +8,7 @@ class Blank_page( Html ):
Html.__init__( Html.__init__(
self, self,
Head( Head(
Script( type = u"text/javascript", src = u"/static/js/MochiKit.js" ), Script( type = u"text/javascript", src = u"/static/js/MochiKit.js?%s" % VERSION ),
), ),
Body( Body(
Script( script, type = u"text/javascript" ), Script( script, type = u"text/javascript" ),

View File

@ -19,7 +19,7 @@ class Download_page( Product_page ):
logout_url, logout_url,
u"download", # note title u"download", # note title
Script( type = u"text/javascript", src = u"/static/js/MochiKit.js" ), Script( type = u"text/javascript", src = u"/static/js/MochiKit.js?%s" % VERSION ),
Div( Div(
Div( Div(

View File

@ -206,13 +206,13 @@ class Main_page( Page ):
Page.__init__( Page.__init__(
self, self,
title, title,
Link( rel = u"stylesheet", type = u"text/css", href = u"/static/css/header.css" ), Link( rel = u"stylesheet", type = u"text/css", href = u"/static/css/header.css?%s" % VERSION ),
updates_path and \ updates_path and \
Link( rel = u"alternate", type = u"application/rss+xml", title = notebook.name, href = updates_path ) or None, Link( rel = u"alternate", type = u"application/rss+xml", title = notebook.name, href = updates_path ) or None,
Script( type = u"text/javascript", src = u"/static/js/MochiKit.js" ) or None, Script( type = u"text/javascript", src = u"/static/js/MochiKit.js?%s" % VERSION ) or None,
Script( type = u"text/javascript", src = u"/static/js/Invoker.js" ) or None, Script( type = u"text/javascript", src = u"/static/js/Invoker.js?%s" % VERSION ) or None,
Script( type = u"text/javascript", src = u"/static/js/Editor.js" ) or None, Script( type = u"text/javascript", src = u"/static/js/Editor.js?%s" % VERSION ) or None,
Script( type = u"text/javascript", src = u"/static/js/Wiki.js" ) or None, Script( type = u"text/javascript", src = u"/static/js/Wiki.js?%s" % VERSION ) or None,
Input( type = u"hidden", name = u"user", id = u"user", value = json( user ) ), Input( type = u"hidden", name = u"user", id = u"user", value = json( user ) ),
Input( type = u"hidden", name = u"rate_plan", id = u"rate_plan", value = json( rate_plan ) ), Input( type = u"hidden", name = u"rate_plan", id = u"rate_plan", value = json( rate_plan ) ),
Input( type = u"hidden", name = u"yearly", id = u"yearly", value = json( signup_yearly ) ), Input( type = u"hidden", name = u"yearly", id = u"yearly", value = json( signup_yearly ) ),

View File

@ -1,4 +1,5 @@
from Tags import Html, Head, Link, Script, Meta, Title, Body, Div, A, H1 from Tags import Html, Head, Link, Script, Meta, Title, Body, Div, A, H1
from config.Version import VERSION
class Page( Html ): class Page( Html ):
@ -14,12 +15,13 @@ class Page( Html ):
Html.__init__( Html.__init__(
self, self,
Head( Head(
Link( rel = u"stylesheet", type = u"text/css", href = u"/static/css/style.css" ), Link( rel = u"stylesheet", type = u"text/css", href = u"/static/css/style.css?%s" % VERSION ),
Meta( content = u"text/html; charset=UTF-8", http_equiv = u"content-type" ), Meta( content = u"text/html; charset=UTF-8", http_equiv = u"content-type" ),
[ child for child in children if isinstance( child, head_types ) ], [ child for child in children if isinstance( child, head_types ) ],
Title( title and u"%s: %s" % ( app_name, title ) or app_name ), Title( title and u"%s: %s" % ( app_name, title ) or app_name ),
"""<!--[if IE 6]><link href="/static/css/ie6.css" type="text/css" rel="stylesheet"></link><![endif]-->""", """<!--[if IE 6]><link href="/static/css/ie6.css?%s" type="text/css" rel="stylesheet"></link><![endif]-->""" % VERSION,
"""<!--[if IE 7]><link href="/static/css/ie7.css" type="text/css" rel="stylesheet"></link><![endif]-->""", """<!--[if IE 7]><link href="/static/css/ie7.css?%s" type="text/css" rel="stylesheet"></link><![endif]-->""" % VERSION,
"""<!--[if IE 8]><link href="/static/css/ie7.css?%s" type="text/css" rel="stylesheet"></link><![endif]-->""" % VERSION,
), ),
Body( Body(
Div( Div(

View File

@ -1,6 +1,7 @@
from Page import Page from Page import Page
from Header import Header from Header import Header
from Tags import Link, Meta, Div, A, Span, Ul, Li, Br from Tags import Link, Meta, Div, A, Span, Ul, Li, Br
from config.Version import VERSION
class Product_page( Page ): class Product_page( Page ):
@ -8,8 +9,8 @@ class Product_page( Page ):
Page.__init__( Page.__init__(
self, self,
( note_title != "home" ) and note_title or None, # use the default title for the "home" page ( note_title != "home" ) and note_title or None, # use the default title for the "home" page
Link( rel = u"stylesheet", type = u"text/css", href = u"/static/css/header.css" ), Link( rel = u"stylesheet", type = u"text/css", href = u"/static/css/header.css?%s" % VERSION ),
Link( rel = u"stylesheet", type = u"text/css", href = u"/static/css/product.css" ), Link( rel = u"stylesheet", type = u"text/css", href = u"/static/css/product.css?%s" % VERSION ),
Meta( name = u"description", content = u"Luminotes is a WYSIWYG personal wiki notebook for organizing your notes and ideas." ), Meta( name = u"description", content = u"Luminotes is a WYSIWYG personal wiki notebook for organizing your notes and ideas." ),
Meta( name = u"keywords", content = u"note taking, personal wiki, wysiwyg wiki, easy wiki, simple wiki, wiki notebook" ), Meta( name = u"keywords", content = u"note taking, personal wiki, wysiwyg wiki, easy wiki, simple wiki, wiki notebook" ),

View File

@ -1,4 +1,5 @@
import cgi import cgi
from config.Version import VERSION
def stream_progress( uploading_file, filename, fraction_reported ): def stream_progress( uploading_file, filename, fraction_reported ):
@ -15,12 +16,12 @@ def stream_progress( uploading_file, filename, fraction_reported ):
u""" u"""
<html> <html>
<head> <head>
<link href="/static/css/upload.css" type="text/css" rel="stylesheet" /> <link href="/static/css/upload.css?%s" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/static/js/MochiKit.js"></script> <script type="text/javascript" src="/static/js/MochiKit.js?%s"></script>
<meta content="text/html; charset=UTF-8" http_equiv="content-type" /> <meta content="text/html; charset=UTF-8" http_equiv="content-type" />
</head> </head>
<body> <body>
""" """ % ( VERSION, VERSION )
FILENAME_TRUNCATION_WIDTH = 40 FILENAME_TRUNCATION_WIDTH = 40
base_filename = filename.split( u"/" )[ -1 ].split( u"\\" )[ -1 ] base_filename = filename.split( u"/" )[ -1 ].split( u"\\" )[ -1 ]
@ -98,8 +99,8 @@ def stream_quota_error():
u""" u"""
<html> <html>
<head> <head>
<link href="/static/css/upload.css" type="text/css" rel="stylesheet" /> <link href="/static/css/upload.css?%s" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/static/js/MochiKit.js"></script> <script type="text/javascript" src="/static/js/MochiKit.js?%s"></script>
<meta content="text/html; charset=UTF-8" http_equiv="content-type" /> <meta content="text/html; charset=UTF-8" http_equiv="content-type" />
</head> </head>
<body> <body>
@ -108,4 +109,4 @@ def stream_quota_error():
</script> </script>
</body> </body>
</html> </html>
""" % quota_error_script """ % ( VERSION, VERSION, quota_error_script )

View File

@ -1,5 +1,6 @@
from Product_page import Product_page from Product_page import Product_page
from Tags import Div, H1, Img, A, P, Table, Th, Tr, Td, Li, Span, I, Br, Ul, Li, Script, H4, B, Script from Tags import Div, H1, Img, A, P, Table, Th, Tr, Td, Li, Span, I, Br, Ul, Li, Script, H4, B, Script
from config.Version import VERSION
class Upgrade_page( Product_page ): class Upgrade_page( Product_page ):
@ -18,7 +19,7 @@ class Upgrade_page( Product_page ):
logout_url, logout_url,
u"pricing", # note title u"pricing", # note title
Script( type = u"text/javascript", src = u"/static/js/MochiKit.js" ), Script( type = u"text/javascript", src = u"/static/js/MochiKit.js?%s" % VERSION ),
Div( Div(
Div( Div(

View File

@ -1,4 +1,5 @@
from Tags import Html, Head, Link, Meta, Body, P, Form, Span, Input from Tags import Html, Head, Link, Meta, Body, P, Form, Span, Input
from config.Version import VERSION
class Upload_page( Html ): class Upload_page( Html ):
@ -6,7 +7,7 @@ class Upload_page( Html ):
Html.__init__( Html.__init__(
self, self,
Head( Head(
Link( href = u"/static/css/upload.css", type = u"text/css", rel = u"stylesheet" ), Link( href = u"/static/css/upload.css?%s" % VERSION, type = u"text/css", rel = u"stylesheet" ),
Meta( content = u"text/html; charset=UTF-8", http_equiv = u"content-type" ), Meta( content = u"text/html; charset=UTF-8", http_equiv = u"content-type" ),
), ),
Body( Body(