Hello; On Apr 7, 4:55 pm, Social Network in DJango <[email protected]> wrote: > I'm interested in activating a click-wrap license, similar to what you > get when you install a new program or package, on a pc or osx.
So to get this straight, you want to greet a user with a pr0n style 'enter here only if you agree' on your Web site? That would be pretty easy to accomplish. All you need to do is wrap your views in a decorator that checks the session of the user and then displays the content, otherwise it will display the license and agree button, which would then set a key in that user's session. > The core issues I've identified so far: > * Acceptance to move on Look at django sessions: http://docs.djangoproject.com/en/dev/topics/http/sessions/ and for DRYness look at python decorators or django middleware to check and handle those sessions. > * Pagenation for convenient viewing Django has pagenation: http://www.djangoproject.com/documentation/models/pagination/ > * A reasonable default formatting for what was a word document This is all done with HTML formatting. Not really in the realm of Django. Templates can be written as user friendly (or unfriendly) as you want with regular HTML. Look into a decent CSS framework like YUI or Blueprint CSS to give you a leg up there. > * Handling unusual characters such as " and ' You will need to handle the switch from ACSII to Unicode and HTML escaping. This can be a touch tricky if you don't understand it. Best bet, don't paste from Word. Look into HTML escaped entities: http://www.w3schools.com/HTML/html_entities.asp > * Minimal changes to the text to be able to update it from word as the > original changes This is all done on the templating side. You can update the database easily enough, but the formatting should all be done in HTML somehow or another. If you don't understand this, you might want to look into a WYSIWYG editor like the one YUI has or TinyMCE. > * Using it at registration or while already using the site You can look at how django-registration handles Terms and Agreements in it's form: http://bitbucket.org/ubernostrum/django-registration/wiki/Home That's a great example of some good reusable django code that James Bennett has offered the community to use. > I look forward to you input. Hope that helps, Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

