Re: Fellows .. does “django-mptt” fit this Course Structure system?

35 views
Skip to first unread message

Nicolas CANIART

unread,
Jul 7, 2012, 1:41:33 AM7/7/12
to django-...@googlegroups.com

Regarding the theiry, what you are describing is not teresa but a DAG (Directed Acyclic Graph) which is not a teresa anymore.

Yet lots of CES built on top of mort solve this problem that way (tanks django-mptt ability  to deal with a forest not just a single tree):

- they would put the shared node(s), the tests in your case, in seperate trees.
- where the shared node would be in the tree, add some kind of virtual node which is only here to point to another tree.

This very much like a symbolic link on a file system.

Home this help. Regards, Nicolas.


Le 6 juil. 2012 23:10, "vahidR" <vahid....@lanternaeducation.com> a écrit :
>
> Hello everybody,
>
> I have a vital question on designing a system which I think fits "django-mptt" and would like to know your valuable ideas. 
>
> I have asked the question in Stackoverflow as well. So, you can reply either here or there . 
> Nevertheless, I will repeat the question here as well:
>
>
> Let's consider a Course Structure for a Learning Management System (call it an online school).
>
> We have something like this :
>
> Course 1
>     Topic 1
>         Sub-Topic 1-1
>         sub-Topic 1-2
>     Topic 2
>         Sub-Topic 2-1
>         Sub-Topic 2-2
>
> Course 2
>     Topic 1
>         Sub-Topic 1-1
>         sub-Topic 1-2
>     Topic 2
>         Sub-Topic 2-1
>         Sub-Topic 2-2
>     ...
>
> For example, we have a course of "Mathematics 1", Topic of "Linear Algebra", and Sub-topic of "Linear equations".
>
> The important point is that we can assign some Content and some Tests to each of these nodes.
>
> Now django-mptt comes out:
>
> 1) I need to populate the course tree within the navigation bar. I guess that should be easy and trivial. what's your idea ?
>
> 2) Maybe I want to point a Test to both Sub-Topic 1-1 in Course 1 AND Sub-Topic 2-2 in course 2. Doesn't it ruin the theory of trees? Well, they are not part of the tree, I believe.. They justpoint to some nodes. What do you think ?
>
> Thanks for your answers beforehand ..

Reply all
Reply to author
Forward
0 new messages