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

2010-07-29 Thread BobAalsma
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 wrote: > > This quest

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 wrote: > I'm working on a programme where I want the user to register comments > on a third party web

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 wrote: > I'm working on a programme where I want the user to register comments > on a third party web

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 wrote: > I'm working on a programme where I want the user to register comments > on a third party web

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 wrote: > I'm working on a programme where I want the user to register comments > on a third party web

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 wrote: > I'm working on a programme where I want the user to register comments > on a third party web

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 I

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 t

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 wrote: > Hmm, on second thoughts... > > I tested from the shell in a few user environements and it worked. > >

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

2010-03-25 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 wrote: > Hmm, on second thoughts... > > I tested from the shell in a few user environements and it worked. > >

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

2010-03-25 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 wrote: > OK, found it - thanks! > > Regards, > Bob > > On Mar 25, 6:40 pm, "piz...@gmail.com" wrote: >

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

2010-03-25 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 wrote: > OK, found it - thanks! > > Regards, > Bob > > On Mar 25, 6:40 pm, "piz...@gmail.com" wrote: >

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

2010-03-25 Thread BobAalsma
egards, > 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 discover how to look > &g

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

2010-03-25 Thread BobAalsma
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 wrote: > > I work as a single person on a single machine. I use an unstable > > pro

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

2010-03-25 Thread BobAalsma
> 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 > > On Thu, Mar 25, 2010

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

2010-03-25 Thread BobAalsma
, 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 > > "originating"

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 uns

Re: Newbie question: value inequality in Manager Method?

2010-03-19 Thread BobAalsma
          ...get_query_set().exclude(ccWaarde=0) > > Bill > > On Fri, Mar 19, 2010 at 9:35 AM, Daniel Roseman wrote: > > On Mar 19, 1:22 pm, BobAalsma wrote: > >> In models.py, when I use > >> class GevondenManager(models.Manager): > >>         def get_q

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, VraagComponentMod

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 need to run: > $ tar xf Django

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 th

Re: Newbie question: empty is not empty?

2009-12-31 Thread BobAalsma
ror at /search/ 'WSGIRequest' object has no attribute 'get' Typo? On Dec 31, 12:31 pm, Jani Tiainen 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

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 wrote: > On 31 Dec 2009, at 12:20 , BobAalsma wrote: > > > Thanks Masklin

Re: Newbie question: empty is not empty?

2009-12-31 Thread BobAalsma
ted ( ), which leads 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 wrote: > On 31 Dec 2009, a

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 are lost when displaying th

newbie question: .is_valid seems non-Boolean?

2009-12-20 Thread BobAalsma
I'm following the The Django Book 2.0, trying to learn Django. I'm on Apple OS X10.5.8, Python 2.5.1. I have looked at FAQ, mailing lists, etc. but did not find any situation looking like this. Question: although all other parts seem to work as described in the book, the .is_valid returns an unexp