Hello again, something simple this time:
After a user selects a file from the form, that sleection of his can be
found form reading the variable 'filename'
If the filename already exists in to the database i want to update its
counter and that is what i'm trying to accomplish by:
--
On 17/6/2013 7:14 μμ, Grant Edwards wrote:
But failing _isn't_ inevitible. If you take the time to actually
learn Python by reading the references people provide, by studying
small examples, and by experimenting with Python code, there's no
reason why you should fail.
I'am and i feel better ex
On 16/6/2013 9:39 μμ, Antoon Pardon wrote:
If nikos's project was a college project we would have told
him he has to make his homework himself.
This is where you all mistaken.
You see, my website could be done ina CMS like (Joomla or Drupal) or
even in DreamWeaver.
I choosed Python because
On 17/6/2013 5:22 μμ, Terry Reedy wrote:
On 6/17/2013 7:34 AM, Simpleton wrote:
On 17/6/2013 9:51 πμ, Steven D'Aprano wrote:
Now, in languages like Python, Ruby, Java, and many others, there is no
table of memory addresses. Instead, there is a namespace, which is an
association between
On 17/6/2013 2:58 μμ, Michael Torrie wrote:
In python just think of assignment as making a name *be* an object. And
if you assign one name to another name, that makes both names be the
same object. When names are unbound (either they go out of scope or you
manually unbind them), the objects the
On 17/6/2013 9:51 πμ, Steven D'Aprano wrote:
Now, in languages like Python, Ruby, Java, and many others, there is no
table of memory addresses. Instead, there is a namespace, which is an
association between some name and some value:
global namespace:
x --> 23
y --> "hello world"
Firs
On 17/6/2013 12:07 μμ, Simpleton wrote:
On 17/6/2013 10:00 πμ, Steven D'Aprano wrote:
On Mon, 17 Jun 2013 09:11:05 +0300, Νίκος wrote:
everything work as expected but not the part when the counter of a
filename gets increased when the file have been requested.
I don't see how
On 17/6/2013 12:07 μμ, Simpleton wrote:
# Load'em
for filename in filenames:
try:
# Check the presence of current filename against it's database
presence
cur.execute('''SELECT url FROM files WHERE url = %s''', filename )
dat
On 17/6/2013 10:00 πμ, Steven D'Aprano wrote:
On Mon, 17 Jun 2013 09:11:05 +0300, Νίκος wrote:
everything work as expected but not the part when the counter of a
filename gets increased when the file have been requested.
I don't see how since:
if filename:
#update file counter