Re: Calculate the time differences

2008-09-24 Thread Krishgy

Domen and Yoan,

Thanks for the tips.. this works..

Regards,

Krish

On Sep 24, 5:18 pm, Yoan Blanc [EMAIL PROTECTED] wrote:
 Just do this on the client side.

 http://ejohn.org/blog/javascript-pretty-date/http://yoan.dosimple.ch/blog/2008/01/20/

 Cheers,

 --
 Yoan

 On Tue, Sep 23, 2008 at 8:09 AM, Domen Kožar [EMAIL PROTECTED] wrote:

 http://docs.pylonshq.com/thirdparty/webhelpers/date.html#webhelpers-date

  On 23 sep., 03:50, Krishgy [EMAIL PROTECTED] wrote:
  Hi All,

  In my Pylons site, I have to display the approximate posted time of
  the content to the user.

  For example,

  1. posted 2 hours ago
  2. Posted yesterday
  3. Posted 2 days ago
  4. Posted last month
  5. posted two months ago

  I have the created column in the database which is actually timestamp.
  Are there any easiest way of doing the above?

  I don't have any clue. Please help me out.

  Regards,

  Krish
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: how to rename and deploy a pylons app?

2008-09-24 Thread Jonathan Vanasco

I've had to do this before...

you'll want to rename the appropriate files / directories , and then
replace all the module name instances in your project

ie: if your project is named ASDFGHJK , then you'll need to rename:
/ASDFGHJK
/ASDFGHJK/asdfhjk
/ASDFGHJK/asdfhjk.egg-info

then do a s/ASDFGHJK/? on the files

there are lots of
  import ASDFGHJK
  from ASDFGHJK import

if you're using a mac, TextWrangler has a great find/replace function
that works on directories

if you're using subversion for version control, i generaly like to do
it like this:
1- rename files
2- commit
3- find/replace text
4- commit

if you're using git or mercurial, i think you can do the commits in
one step.  svn needs them in two though.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---