Skip to content

Commit

Permalink
adding support for analytics javascript in config
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Raddon authored and Aaron Raddon committed May 11, 2008
1 parent 9fc91b3 commit 9583d46
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions blog.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def post(self):
blog.area1 = self.request.get('area1')
blog.area2 = self.request.get('area2')
blog.area3 = self.request.get('area3')
blog.analyticsjs = self.request.get('analyticsjs')
blog.save()
self.redirect('/admin/entry/list/post')

Expand Down
1 change: 1 addition & 0 deletions model.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Blog(db.Model):
area2 = db.TextProperty(default='')
area3 = db.TextProperty(default='')
tags = db.TextProperty(default='{}')
analyticsjs = db.StringProperty(multiline=False,default='')

def save(self):
self.put()
Expand Down
4 changes: 4 additions & 0 deletions views/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@
<label for="area3">Footer3:</label>
<textarea name="area3" rows="4" cols="60" class="wide">{{ blogedit.area3 }}</textarea>
</div>
<div class="optional">
<label for="analyticsjs">Analytics Javascript:</label>
<textarea name="analyticsjs" rows="4" cols="60" class="wide">{{ blogedit.analyticsjs }}</textarea>
</div>
</fieldset>
<div class="actions"><input type="submit" class="primaryAction" id="submit" value="Save &#187;">
&nbsp;&nbsp;<a href="#" id="cancelnode">cancel</a></div>
Expand Down

0 comments on commit 9583d46

Please sign in to comment.