a good way to do user submissions
djay75
nabble at dylanjay.com
Tue Sep 4 06:03:10 UTC 2007
I sent this message because for each thing I want to do in plone, I seem to
have many options often with no clear way to choose. On posting this problem
to plone developers I was told that asking people for advice was a good
approach. No one seems to have any advice which could mean
a) no one has had these same problems
b) I'm not communicating the problem right
c) open source communities aren't helpful
d) I'm trying to do things which shouldn't/can't be done
Lets assume its b).
The sort of thing I'm trying to do is what is traditially done by relational
joins and aggregation functions. For instance if I want to get a list of the
top refered to items on a site? Has anyone thought about such a problem?
I can write a numberofreferences method on an item and index the result.
This will run a query on each update and also needs extra code to make sure
it happens for links at either end.
I can interate through the whole catalog and work it out at query time.
Is there a better solution?
djay75 wrote:
>
> Some of my recent projects seem to be of the form letting users
> vote/comment/create associations between things and I was wondering what
> people thought was the best way to implement this using AGX. Let me give
> an example.
>
> Let's say I wanted to create plonestack.org, which lets users create the
> list or stack of products they use for their in their sites along with the
> reasons they use it.
> You could model this as a Product class and a Stack class with a many to
> many relationship and an association class which stores the comments for
> each link.
> You could also model this as Product, Stack and StackItem class instead of
> using an association class.
>
> AGX will turn this into plone objects is that the best way to go?
>
> Stacks are created by users, so do they live in a StackFolder singleton or
> live in member folders?
>
> I would also want to add voting so I can see reports of the most popular
> Products used. How would people implement that?
>
> I know there is a submissions product but frankly it confuses me
>
>
--
View this message in context: http://www.nabble.com/a-good-way-to-do-user-submissions-tf4350925s20094.html#a12472332
Sent from the Product Developers mailing list archive at Nabble.com.
More information about the Product-Developers
mailing list