Re: Newbie: how to tell a URL for a page?

2010-07-29 Thread BobAalsma
ame/iframe DOM: > > http://www.w3schools.com/jsref/dom_obj_frame.asp > > The iframe should contain a document object which should contain theURLloaded > on the frame. > > Regards, > Carlos Daniel Ruvalcaba Valenzuela > > On Wed, Jul 28, 2010 at 10:57 PM, BobAalsma <bo

Re: Newbie: how to tell a URL for a page?

2010-07-28 Thread BobAalsma
This question has been in the forum for about almost a week & no response. So please help a newbie out: is it too easy or too difficult to answer? On Jul 24, 7:29 pm, BobAalsma <bob.aal...@aalsmacons.nl> wrote: > I'm working on a programme where I want the user to register comments

Re: Newbie: how to tell a URL for a page?

2010-07-28 Thread BobAalsma
This question has been in the forum for about almost a week & no response. So please help a newbie out: is it too easy or too difficult to answer? On Jul 24, 7:29 pm, BobAalsma <bob.aal...@aalsmacons.nl> wrote: > I'm working on a programme where I want the user to register comments

Re: Newbie: how to tell a URL for a page?

2010-07-28 Thread BobAalsma
This question has been in the forum for about almost a week & no response. So please help a newbie out: is it too easy or too difficult to answer? On Jul 24, 7:29 pm, BobAalsma <bob.aal...@aalsmacons.nl> wrote: > I'm working on a programme where I want the user to register comments

Re: Newbie: how to tell a URL for a page?

2010-07-28 Thread BobAalsma
This question has been in the forum for about almost a week & no response. So please help a newbie out: is it too easy or too difficult to answer? On Jul 24, 7:29 pm, BobAalsma <bob.aal...@aalsmacons.nl> wrote: > I'm working on a programme where I want the user to register comments

Re: Newbie: how to tell a URL for a page?

2010-07-28 Thread BobAalsma
This question has been in the forum for about almost a week & no response. So please help a newbie out: is it too easy or too difficult to answer? On Jul 24, 7:29 pm, BobAalsma <bob.aal...@aalsmacons.nl> wrote: > I'm working on a programme where I want the user to register comments

Newbie: how to tell a URL for a page?

2010-07-24 Thread BobAalsma
I'm working on a programme where I want the user to register comments on a third party web page. To show this third party page, I intend to use frames or iframes, but I discovered that some of the URLs redirect. This means that the page shown in the (i)frame will have a different URL from the URL

Architecture? (newbie)

2010-07-03 Thread BobAalsma
Hi, I'm trying to find a (good) book or other documentation on how to group/organise Django files; I've found some posts on this forum, I've found some remarks through Google, but not a "complete" guideline for this subject. I have a background in software packages (3GL) and try to find answers

Re: How to locate the OS user name? [newbie]

2010-03-26 Thread BobAalsma
In addition: So maybe Baurzhan was right: using a database login (explicit or implicit) could be the easier solution to build. Regards, Bob On Mar 26, 7:32 am, BobAalsma <b...@leaddevice.com> wrote: > Hmm, on second thoughts... > > I tested from the shell in a few use

Re: How to locate the OS user name? [newbie]

2010-03-26 Thread BobAalsma
In addition: So maybe Baurzhan was right: using a database login (explicit or implicit) could be the easier solution to build. Regards, Bob On Mar 26, 7:32 am, BobAalsma <b...@leaddevice.com> wrote: > Hmm, on second thoughts... > > I tested from the shell in a few use

Re: How to locate the OS user name? [newbie]

2010-03-26 Thread BobAalsma
. So I think now the question seems to be "how to extract the OS user name from the browser environment?" Regards, Bob On Mar 25, 7:06 pm, BobAalsma <b...@leaddevice.com> wrote: > OK, found it - thanks! > > Regards, > Bob > > On Mar 25, 6:40 pm, "piz

Re: How to locate the OS user name? [newbie]

2010-03-26 Thread BobAalsma
. So I think now the question seems to be "how to extract the OS user name from the browser environment?" Regards, Bob On Mar 25, 7:06 pm, BobAalsma <b...@leaddevice.com> wrote: > OK, found it - thanks! > > Regards, > Bob > > On Mar 25, 6:40 pm, "piz

Re: How to locate the OS user name? [newbie]

2010-03-25 Thread BobAalsma
others. > > Regards, > Oscar C. > > El 25/03/2010, a las 18:28, BobAalsma escribió: > > > YES! > > > Works beautifully, thanks. > > > On the newbie part: how could I have found this? > > I did find the os.environ and you've helped me dis

Re: How to locate the OS user name? [newbie]

2010-03-25 Thread BobAalsma
t os > >>> [i for i in os.environ.items()] > > and look for the item that contains the username you are looking for. > > HTH & Cheers > > Benjamin > > On Thu, Mar 25, 2010 at 16:27, BobAalsma <b...@leaddevice.com> wrote: > > I work as a single person on

Re: How to locate the OS user name? [newbie]

2010-03-25 Thread BobAalsma
gt; os.environ object. > So take a look at  this in your python commandline/shell > > >>> import os > >>> [i for i in os.environ.items()] > > and look for the item that contains the username you are looking for. > > HTH & Cheers > > Benjamin > &

Re: How to locate the OS user name? [newbie]

2010-03-25 Thread BobAalsma
wrote: > On Thu, Mar 25, 2010 at 08:27:37AM -0700, BobAalsma wrote: > > I am trying to build a Django application to centralise the > > information gathered by this unstable programme, but in some cases I > > need to refer to the stored files. So I want to store the >

How to locate the OS user name? [newbie]

2010-03-25 Thread BobAalsma
I work as a single person on a single machine. I use an unstable programme that requires me to employ more than one OS user. The programme will store some files locally (in each specific user environment). I am trying to build a Django application to centralise the information gathered by this

Re: Newbie question: value inequality in Manager Method?

2010-03-19 Thread BobAalsma
).exclude(ccWaarde=0) > > Bill > > On Fri, Mar 19, 2010 at 9:35 AM, Daniel Roseman <dan...@roseman.org.uk> wrote: > > On Mar 19, 1:22 pm, BobAalsma <b...@leaddevice.com> wrote: > >> In models.py, when I use > >> class GevondenManager(models.Manager): &

Newbie question: value inequality in Manager Method?

2010-03-19 Thread BobAalsma
return super(GevondenManager,self).get_query_set().filter(crcWaarde ! = 0) and in both cases the results seem the same: MacPro1:leaddevice bobaalsma$ python manage.py shell Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32) [GCC 4.0.1 (Apple Inc. build 5493)] on darwin Type "help", "co

Modelling question: TypeError at Post?

2010-03-15 Thread BobAalsma
I get a TypeError at Post from the admin interface and I suspect this is connected to my key definition, but couldn't find documentation on this. Any ideas? Error message: TypeError at /admin/LeadDeviceSysteem/vraagcomponentinhoud/add/ coercing to Unicode: need string or buffer,

Re: Newbie question: upgrade to python 2.6: cannot (re)connect to Django?

2010-03-10 Thread BobAalsma
YES! Thank you very much. Amazing how simple things can be blocking if the context is missing ;-) Regards, Bob On Mar 10, 11:12 am, Jirka Vejrazka wrote: > Hi Bob, > > > MacPro1:Downloads$ ls > > Django-1.1.1.tar > >   You have not unpacked the Django archive. You

Newbie question: upgrade to python 2.6: cannot (re)connect to Django?

2010-03-09 Thread BobAalsma
On this machine (MacPro, OS X 10.5.8) I have installed and started working with Django. I wanted to upgrade to Pyhton 2.6. Installed from http://www.python.org/download/ (downloaded 2.6.4 Mac Installer Disk Image). Seems to work properly. Then wanted to use Django again. Can't seem to connect to

Re: Newbie question: empty is not empty?

2009-12-31 Thread BobAalsma
? On Dec 31, 12:31 pm, Jani Tiainen <rede...@gmail.com> wrote: > On Thu, 2009-12-31 at 03:20 -0800, BobAalsma wrote: > > Thanks Masklin, I've just tried your suggestion and there is no > > change. > > > I'm somewhat mystified by the 'u' that gets added to all answer &g

Re: Newbie question: empty is not empty?

2009-12-31 Thread BobAalsma
Yes. I've copied your text into the views.py and now I get the expected answers - thanks! I'll study the differences to see what went wrong. Thanks again, Bob On Dec 31, 12:26 pm, Masklinn <maskl...@masklinn.net> wrote: > On 31 Dec 2009, at 12:20 , BobAalsma wrote: > > > Th

Re: Newbie question: empty is not empty?

2009-12-31 Thread BobAalsma
to a Django errorpage, stating that the contents of the variable 'q' is u'd' - which seems to indicate to me that a "u" is added to all values of q (also explaining why q is never empty). On Dec 31, 11:27 am, Masklinn <maskl...@masklinn.net> wrote: > On 31 Dec 2009, at 10:5

Newbie question: empty is not empty?

2009-12-31 Thread BobAalsma
I'm following the Django book to learn Django. I'm getting unexpected responses and can't find how to address this. It seems that submitting an empty form is not handled as if it is empty ?? In views.py: def search(request): if 'q' in request.GET: message = 'U zocht: %r' %

Re: Enable users to input formatted text

2009-12-21 Thread BobAalsma
Umm, I think you would then also invite/enable hackers to upload unwanted thingies, such as viruses and scripts... On Dec 21, 8:12 am, Continuation wrote: > I have a TextField() field that stores user entered text. However the > formatting is a bit weird, eg. new lines