[Oi-commits] r1855 - branches/newdesign/st
oi-commits at pardus.org.tr
oi-commits at pardus.org.tr
Sat Sep 6 19:32:37 EEST 2008
Author: huseyin.berberoglu
Date: Sat Sep 6 19:32:37 2008
New Revision: 1855
Modified:
branches/newdesign/st/views.py
Log:
for forloop
Modified: branches/newdesign/st/views.py
=================================================================
--- branches/newdesign/st/views.py (original)
+++ branches/newdesign/st/views.py Sat Sep 6 19:32:37 2008
@@ -67,7 +67,11 @@
def game_detail(request, slug):
game = get_object_or_404(Game, slug=slug)
game.avg = ((game.gameplay + game.graphics + game.sound + game.scenario + game.atmosphere)/5.0)
-
+ game.gameplay_range = range(1, game.gameplay)
+ game.graphics_range = range(1, game.graphics)
+ game.sound_range = range(1, game.sound)
+ game.scenario_range = range(1, game.scenario)
+ game.atmosphere_range = range(1, game.atmosphere)
form=CommentForm()
if request.user.is_authenticated():
@@ -113,7 +117,7 @@
if request.user.is_authenticated():
auth=True
-
+ package.point = range(1, package.point)
# we need to handle page titles that changed after creating
try:
topic = Topic.objects.filter(title=package.title)[0]
More information about the Oi-commits
mailing list