Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 May 5, 2008 17:58:01

Michael N.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie


> - Is it possible to create WML files (or for that matter any customised
> output that is not out there) easily? Especially by way of XML/XSLT.

Django is really flexible with it's template and HttpResponse system.
You can specify headers, types and serializations on the fly. Granted
these types of systems aren't as popular as JSON or other types, but I
believe that for an all encompassing framework, Django provides you
with the greatest flexibility on this aspect. Also because it is all
python, you can do anything python can do.

> - If so, are there many standard templates that can be downloaded and
> customised?

Believe it or not, no, and I wouldn't want it any other way. Templates
are written in pure html with variables punched in. So if there is an
HTML template that you like you can take that and adapt it to fit your
new Django site. Or, as I prefer, you can design your site however you
like, but I am an (x)HTML/CSS guy.

> - Is there an IDEs that can be used for development?

Django is python so all python IDEs, Komodo, Wingware, vim, emacs,
etc., work with django modules. There are plugins throughout the web
for specific django-only python (models) and for django templates for
just about any IDE. As i said before the templates are just HTML, so
any HTML IDE will work with Django templates. I, personally, am a big
fan of Textmate and VIM, both with django plugins.

> - Given my basic needs, do you think Django is good, or some other tech is
> better?

I might be a bit biased, but Django is great and very flexible. Don't
really know precisely what your needs are, and i am really not that
familiar with these really in depth cell phone file types. Out of the
box Django is really powerful and the more you learn python and the
django internals, you can really do some spectacular things really
quickly. IMHO for content management, I can't imagine a better
system.

Enjoy diving in!

Michael
--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

#2 May 5, 2008 18:04:52

Rajath S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie


Michael,
Thanks for taking the time out to answer all my questions. Much appreciated.
I think I'm quite sold on Django/Python now. Will start digging into it
right away.

Thanks,
Rajath


On 5/5/08, Michael Newman <> wrote:
>
>
>
> > - Is it possible to create WML files (or for that matter any customised
> > output that is not out there) easily? Especially by way of XML/XSLT.
>
> Django is really flexible with it's template and HttpResponse system.
> You can specify headers, types and serializations on the fly. Granted
> these types of systems aren't as popular as JSON or other types, but I
> believe that for an all encompassing framework, Django provides you
> with the greatest flexibility on this aspect. Also because it is all
> python, you can do anything python can do.
>
> > - If so, are there many standard templates that can be downloaded and
> customised?
>
> Believe it or not, no, and I wouldn't want it any other way. Templates
> are written in pure html with variables punched in. So if there is an
> HTML template that you like you can take that and adapt it to fit your
> new Django site. Or, as I prefer, you can design your site however you
> like, but I am an (x)HTML/CSS guy.
>
> > - Is there an IDEs that can be used for development?
>
> Django is python so all python IDEs, Komodo, Wingware, vim, emacs,
> etc., work with django modules. There are plugins throughout the web
> for specific django-only python (models) and for django templates for
> just about any IDE. As i said before the templates are just HTML, so
> any HTML IDE will work with Django templates. I, personally, am a big
> fan of Textmate and VIM, both with django plugins.
>
> > - Given my basic needs, do you think Django is good, or some other tech
> is better?
>
> I might be a bit biased, but Django is great and very flexible. Don't
> really know precisely what your needs are, and i am really not that
> familiar with these really in depth cell phone file types. Out of the
> box Django is really powerful and the more you learn python and the
> django internals, you can really do some spectacular things really
> quickly. IMHO for content management, I can't imagine a better
> system.
>
> Enjoy diving in!
>
> Michael
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

#3 May 8, 2008 09:40:21

Cesar M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie


hey us it cool if i tell you that im a newby too

On 5/5/08, Rajath Stanley D'Souza <> wrote:
>
> Hi all,
> I'm new to this whole area of web development. New to Django, Python, et
> al. I've only done some C,C++ coding for mobile phones before, but have a
> need to get into it now. Specifically planning on a creating a website that
> caters to PC and different devices like mobile phones, PDAs, etc. I have
> briefly evaluated a few CMSs and web frameworks, and overall, Django (
> djangoproject.com) seems very promising. I have a few questions I'm
> interested to find out before I get too deep into my studies of Python and
> Django.
>
> - Is it possible to create WML files (or for that matter any customised
> output that is not out there) easily? Especially by way of XML/XSLT.
> - If so, are there many standard templates that can be downloaded and
> customised?
> - Is there an IDEs that can be used for development?
> - Given my basic needs, do you think Django is good, or some other tech is
> better?
>
> Thanks,
> Rajath
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

#4 June 16, 2010 14:49:27

Tadej B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie


Hello.

GNode is really a simple structure with 4 pointers to nodes (parent,
first child, previous and next sibling), which allow you move inside
tree, and one pointer to user data. You can store just about anything
inside user data pointer, but most applications store pointer to some
heap-allocated structure that holds real data.

I don't think there is a sample code specifically about GNode present
anywhere, since setting-up a tree is not much more difficult than
setting up a doubly-linked list.

Tadej

--
Tadej Borovšak
tadeboro.blogspot.com
tadeb***@*mail.com
tadej.borov***@*mail.com
_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#5 June 16, 2010 15:57:24

Ian L.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie


Attached there is an example of usage

Regards,
Ian L.

On Wed, Jun 16, 2010 at 10:32 AM, Manu Kaul <manu.k***@*mail.com> wrote:

> Hi Ian,
> I have already looked at that API but I am just wondering if I can see some
> sample code to see how it all hangs together and get a better idea?
>
> Cheers!
>
> On Wed, Jun 16, 2010 at 2:29 PM, <ian.li***@*mail.com> wrote:
>
>> GNode has a 'data' attribute, which you can set to any structure you want.
>>
>> Take a look at the GNode API and you will see every function you need to
>> manipulate the tree:
>>http://library.gnome.org/devel/glib/stable/glib-N-ary-Trees.html>>
>> Em , Manu Kaul <manu.k***@*mail.com> escreveu:
>>
>> > Hi All,I am a newbie to this mailing list and I want to implement a
>> n-ary tree and came across "GNode" in glib and wanted to see if there was
>> some good sample code that I could look at to see how I can go about setting
>> up this tree. Also I needed the ability to be able to work upwards from a
>> node all the way to the root by just following the parent pointers. So I was
>> unsure as to how I can do this using GNode. I also wanted to know how I can
>> add additional pointers to the GNode node if I needed them?
>> >
>> >
>> >
>> > Cheers,
>> > CBro
>> >
>> >
>> >
>> >
>>
>
>
>
> --
>
> The greater danger for most of us lies not in setting our aim too high and
> falling short; but in setting our aim too low, and achieving our mark.
> - Michelangelo
>#include <glib.h>

/*
* Defines a macro for casting an object into a 'Person'
*/
#define PERSON(o) (Person*)(o)

typedef struct {
gchar * name;
gint age;
} Person;

Person * person_new(const gchar * name, gint age) {
Person * p;
p = g_new(Person, 1);
p->name = g_strdup(name);
p->age = age;
return p;
}

void person_print(Person * p) {
g_printf("Name: %s\nAge: %d\n\n", p->name, p->age);
}

void person_free(Person * p) {
g_free(p->name);
g_free(p);
}

gboolean traverse_free_func(GNode * node, gpointer data) {
person_free(PERSON(node->data));
return FALSE;
}

int main(int argc, char *argv)
{
GNode * father;
GNode * dother;
GNode * brother;

father = g_node_new(person_new("John", 50));
dother = g_node_new(person_new("Sophia", 21));
brother = g_node_new(person_new("Bob", 20));

g_node_append(father, dother);
g_node_insert_after(father, dother, brother);

/*
* Fetch data
*/

GNode * first_child;
GNode * sibling;

first_child = g_node_first_child(father);
sibling = g_node_next_sibling(first_child);

person_print(PERSON(father->data));
person_print(PERSON(first_child->data));
person_print(PERSON(sibling->data));

/*
* We must free everything now.
*/

g_node_traverse(father, G_IN_ORDER, G_TRAVERSE_ALL, -1,
traverse_free_func, NULL);
g_node_destroy(father);

return 0;
}_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#6 June 16, 2010 16:26:14

Manu K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie


Hi Tadej,
Thanks for the reply. I been reading through the API and it looks good to
me, but I have a few gaps remaining :)

1. I have to add another pointer to each of these nodes... do you suggest I
add it to my data as part of the data struct?
2. Also I was wondering if I could please get some help being able to just
dump out the contents of the tree in a readable format... so really just a
print function for the tree... that would be really helpful and handy! :)

Cheers,
CBro

On Wed, Jun 16, 2010 at 2:48 PM, Tadej Borovšak <tadeb***@*mail.com> wrote:

> Hello.
>
> GNode is really a simple structure with 4 pointers to nodes (parent,
> first child, previous and next sibling), which allow you move inside
> tree, and one pointer to user data. You can store just about anything
> inside user data pointer, but most applications store pointer to some
> heap-allocated structure that holds real data.
>
> I don't think there is a sample code specifically about GNode present
> anywhere, since setting-up a tree is not much more difficult than
> setting up a doubly-linked list.
>
> Tadej
>
> --
> Tadej Borovšak
> tadeboro.blogspot.com
> tadeb***@*mail.com
> tadej.borov***@*mail.com
>



--

The greater danger for most of us lies not in setting our aim too high and
falling short; but in setting our aim too low, and achieving our mark.
- Michelangelo_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#7 June 16, 2010 16:29:02

Manu K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie


Thanks Ian! Will look into it in more detail now.

On Wed, Jun 16, 2010 at 3:56 PM, Ian Liu Rodrigues <ian.li***@*mail.com>wrote:

> Attached there is an example of usage
>
> Regards,
> Ian L.
>
>
> On Wed, Jun 16, 2010 at 10:32 AM, Manu Kaul <manu.k***@*mail.com> wrote:
>
>> Hi Ian,
>> I have already looked at that API but I am just wondering if I can see
>> some sample code to see how it all hangs together and get a better idea?
>>
>> Cheers!
>>
>> On Wed, Jun 16, 2010 at 2:29 PM, <ian.li***@*mail.com> wrote:
>>
>>> GNode has a 'data' attribute, which you can set to any structure you
>>> want.
>>>
>>> Take a look at the GNode API and you will see every function you need to
>>> manipulate the tree:
>>>http://library.gnome.org/devel/glib/stable/glib-N-ary-Trees.html>>>
>>> Em , Manu Kaul <manu.k***@*mail.com> escreveu:
>>>
>>> > Hi All,I am a newbie to this mailing list and I want to implement a
>>> n-ary tree and came across "GNode" in glib and wanted to see if there was
>>> some good sample code that I could look at to see how I can go about setting
>>> up this tree. Also I needed the ability to be able to work upwards from a
>>> node all the way to the root by just following the parent pointers. So I was
>>> unsure as to how I can do this using GNode. I also wanted to know how I can
>>> add additional pointers to the GNode node if I needed them?
>>> >
>>> >
>>> >
>>> > Cheers,
>>> > CBro
>>> >
>>> >
>>> >
>>> >
>>>
>>
>>
>>
>> --
>>
>> The greater danger for most of us lies not in setting our aim too high and
>> falling short; but in setting our aim too low, and achieving our mark.
>> - Michelangelo
>>
>
>


--

The greater danger for most of us lies not in setting our aim too high and
falling short; but in setting our aim too low, and achieving our mark.
- Michelangelo_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#8 June 17, 2010 22:40:14

Manu K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newbie


Hi,
In regards to "GNode", if I wanted to search only the "immediate" child
nodes' DATA to see if they contain matching data would I have to start
looking with a loop that starts with the first child node and then traverses
to each next sibling and each time checking the node's data? Or is there a
better way to conduct this search? I wasn't sure because g_node_find_child()
seemed to suggest that it will look into ALL children of a node by doing a
tree traversal.. this is not what I want.. I just want the search to take
place one level below the current GNode to see if such a node containing my
data already exists!
Any suggestions on how to do this best? I know I can use a for loop or
something to start with the first child and then iterate .. but I want to
see if there is a neater looking way?

Cheers,
CBro



On Wed, Jun 16, 2010 at 3:56 PM, Ian Liu Rodrigues <ian.li***@*mail.com>wrote:

> Attached there is an example of usage
>
> Regards,
> Ian L.
>
>
> On Wed, Jun 16, 2010 at 10:32 AM, Manu Kaul <manu.k***@*mail.com> wrote:
>
>> Hi Ian,
>> I have already looked at that API but I am just wondering if I can see
>> some sample code to see how it all hangs together and get a better idea?
>>
>> Cheers!
>>
>> On Wed, Jun 16, 2010 at 2:29 PM, <ian.li***@*mail.com> wrote:
>>
>>> GNode has a 'data' attribute, which you can set to any structure you
>>> want.
>>>
>>> Take a look at the GNode API and you will see every function you need to
>>> manipulate the tree:
>>>http://library.gnome.org/devel/glib/stable/glib-N-ary-Trees.html>>>
>>> Em , Manu Kaul <manu.k***@*mail.com> escreveu:
>>>
>>> > Hi All,I am a newbie to this mailing list and I want to implement a
>>> n-ary tree and came across "GNode" in glib and wanted to see if there was
>>> some good sample code that I could look at to see how I can go about setting
>>> up this tree. Also I needed the ability to be able to work upwards from a
>>> node all the way to the root by just following the parent pointers. So I was
>>> unsure as to how I can do this using GNode. I also wanted to know how I can
>>> add additional pointers to the GNode node if I needed them?
>>> >
>>> >
>>> >
>>> > Cheers,
>>> > CBro
>>> >
>>> >
>>> >
>>> >
>>>
>>
>>
>>
>> --
>>
>> The greater danger for most of us lies not in setting our aim too high and
>> falling short; but in setting our aim too low, and achieving our mark.
>> - Michelangelo
>>
>
>


--

The greater danger for most of us lies not in setting our aim too high and
falling short; but in setting our aim too low, and achieving our mark.
- Michelangelo_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

Board footer

Moderator control

Enjoy the 19th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support