This repository has been archived by the owner on Apr 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick Bernard
committed
Jan 4, 2007
1 parent
bd6a70c
commit d10e52b
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<dtml-comment> | ||
arguments:data file | ||
connection_id: rsweb_atys_zope | ||
</dtml-comment> | ||
select * from dl_stats where date = <dtml-sqlvar date type="string"> and file = <dtml-sqlvar file type="string"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## Script (Python) "testpy" | ||
##bind container=container | ||
##bind context=context | ||
##bind namespace= | ||
##bind script=script | ||
##bind subpath=traverse_subpath | ||
##parameters=file | ||
##title= | ||
## | ||
date = context.Date()[:10] | ||
try: | ||
result = context.checkDate(date=date,file=file) | ||
if len(result) == 0: | ||
context.insertDate(date=date,file=file) | ||
context.incremente_dl(date=date,file=file) | ||
except: | ||
pass | ||
container.REQUEST.RESPONSE.redirect(file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<dtml-comment> | ||
arguments:data file | ||
connection_id: rsweb_atys_zope | ||
</dtml-comment> | ||
update dl_stats set counter = counter + 1 where date = <dtml-sqlvar date type="string"> and file = <dtml-sqlvar file type="string"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<dtml-comment> | ||
arguments:data file | ||
connection_id: rsweb_atys_zope | ||
</dtml-comment> | ||
insert into dl_stats (date,file,counter) values (<dtml-sqlvar date type="string">,<dtml-sqlvar file type="string">, 0) |