best practice to construct 10x10 grid

2008-01-29 Thread sircco

I have grid 10x10 populated with int>0.
Currently I'm avoiding modelforms all together and doing my own
processing, definining it as array and rendering with
loop, custom checking with my own validators outside of database
Model.

Any hints how to standardize it and move to django way of thinking?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: best practice to construct 10x10 grid

2008-01-29 Thread Kenneth Gonsalves


On 29-Jan-08, at 4:18 PM, sircco wrote:

> I have grid 10x10 populated with int>0.

is the size fixed?

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
Foss Conference for the common man: http://registration.fossconf.in/web/



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: best practice to construct 10x10 grid

2008-01-29 Thread sircco

yes it is


On Jan 29, 11:58 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 29-Jan-08, at 4:18 PM, sircco wrote:
>
> > I have grid 10x10 populated with int>0.
>
> is the size fixed?
>
> --
>
> regards
> kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/web/
> Foss Conference for the common man:http://registration.fossconf.in/web/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: best practice to construct 10x10 grid

2008-01-29 Thread Tim Chase

> I have grid 10x10 populated with int>0.
> Currently I'm avoiding modelforms all together and doing my own
> processing, definining it as array and rendering with
> loop, custom checking with my own validators outside of database
> Model.


Well, you can make a custom template tag that takes your source
data and creates the HTML based on the model you pass to it.  As
an example, you may be interested in my columnize() filter

http://groups.google.com/group/django-users/msg/5cf381778791c605

which columnizes an arbitrary-length list into an arbitrary
number of columns.

You don't give your data, or how it's being presented, but a
similar function could do the trick for you.

-tim



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---