Program to backtrack function calls in source code?

2006-09-02 Thread forum
Hi,

many mistakes in programming arise when one changes the code and
forgets to adjustment somewhere where it is used. Is there a program
that can extract all place in the source code where a variable is
accessed or a function called?
For example in the simplest case I want to change the name of a
function everywhere in the source...

Anton

-- 
http://mail.python.org/mailman/listinfo/python-list


Loop with float increments (frange)?

2006-04-14 Thread forum
Hi!

what's the standard way for a "for" loop with float increments?

Anton

-- 
http://mail.python.org/mailman/listinfo/python-list


Python Boost, help

2004-12-06 Thread To Forum
Hi,

My problem is the following

1/ I install Python 2.4 at D:\Programs\Python24 using the binary file from
www.python.org

2/ following the document from the boost.org I type the command

>bjam "-sTOOLS=vc-7_1 --with-python-root=D:\Programs\Python24" stage

But I receive the following error

> --with-python-root=D:\Programs\Python24-tools.jam: Invalid argument



I think I do something wrong here. If I use the simple command

>bjam "-sTOOLS=vc-7_1 " stage

I get the message:

>skipping Boost.Python .



Can someone show me how can I install Boost.Python correctly?

TF






-- 
http://mail.python.org/mailman/listinfo/python-list


Django admin multi layour

2008-07-11 Thread Christian Kortenhorst (Forum)
Hey All

Just been messing around with django and found that can not seam to get
admin to work how, it does not support multilayer input I want it I know
there is some way of writing your own "view", but wondering would it be
possible to write a multilayer setup or what is the wok around or what
should i be looking for?

my setup is


class Faculty(models.Model):
class Admin: pass
name = models.CharField(maxlength=200)
director = models.CharField(maxlength=200)
web_url = models.CharField(maxlength=200)

def __str__(self):
return self.name

class School(models.Model):
class Admin: pass

faculty = models.ForeignKey(Faculty)
name = models.CharField(maxlength=200)

def __str__(self):
return self.name

class Programme(models.Model):
class Admin: pass

duration_choices = (
('Years', 'years'),
('Days', 'days')
)

school = models.ForeignKey(School)
name = models.CharField(maxlength=200)
description = models.CharField(maxlength=1000)

def __str__(self):
return self.name

class Stream(models.Model):
class Admin: pass
programme_code = models.ForeignKey(Programme,
edit_inline=models.TABULAR, num_in_admin=3)
stream_number = models.IntegerField(core=True)

.



Want to be able to click in and keep adding programs to a school and when i
do that a new box is created and a steam is created.

e.g.

add a Faculty
-> input for school is shown
-> add a school
-> -> input for Programme is shown
-> -> add a programme
-> -> -> etc..

also the option to add new school and program so can have a one to many
relationship.

Thanks
Christian K

-- 
Christian Kortenhorst
mod: +353-(0)87-6183349
home: +353-(0)1-4966287
--
http://mail.python.org/mailman/listinfo/python-list