puentesarrin / selene

A simple CMS for blogging built with Tornado and MongoDB
GNU General Public License v3.0
40 stars 21 forks source link

About "Forms validation and escaping" and "unittest" #9

Closed lowstz closed 11 years ago

lowstz commented 11 years ago

Hello Jorge, I try to work on "Forms validation and escaping", but I have some question.

  1. Where do I deal with these things? handle these things on selene/handler directory ?
  2. I read more topic in tornado maillist and try to write some unittest for selene, but what the best practice of unittest on this project ? I am a newible for web application unittest : (
puentesarrin commented 11 years ago

Hi Chen,

  1. For validation, first, I'm working to move forms translation manipulation from template to a forms layer. Today I must fix this.
  2. You should check out the following links:
lowstz commented 11 years ago

Thank you.

puentesarrin commented 11 years ago

Chen,

I worked on forms translation. Selene is ready for validation and escaping.

See: https://github.com/puentesarrin/selene/commit/f83ea4bc49c9b08cf14f9177e806ca0cfffefae8 and https://github.com/puentesarrin/selene/commit/babfbeb9b0e0a0c5c0876a7cdc8be2a4d740638b.

lowstz commented 11 years ago

I can’t respect you more. ws-tu

BTW: Can you improve the post status, it without localization support now.

STATUSES = [('published', 'Published'), ('unpublished', 'Unpublished')]
puentesarrin commented 11 years ago

I will working on it! Could you create an issue about this?

lowstz commented 11 years ago

Done.