[web2py] Re: Has anybody tried mobilize.js

2011-08-18 Thread Farsheed Ashouri
Seems nice! Let's try it! Thank you.

[web2py] Import error !!!

2011-09-09 Thread Farsheed Ashouri


Traceback (most recent call last):
  File "/home/www-data/web2py/gluon/restricted.py", line 192, in restricted
exec ccode in environment
  File "/home/www-data/web2py/applications/myway/controllers/pastebin.py" 
, line 
15, in 
from pygments.lexers import get_lexer_by_name
  File "/home/www-data/web2py/gluon/custom_import.py", line 276, in __call__
globals, locals, fromlist, level)
  File "/home/www-data/web2py/gluon/custom_import.py", line 74, in __call__
level)
  File "applications/myway/modules/pygments/lexers/__init__.py", line 222, in 

oldmod = sys.modules['pygments.lexers']
KeyError: 'pygments.lexers'

Version 1.98.2 (2011-08-04 00:47:09)Python 2.6.5: /usr/bin/pytho*What is the 
problem guys?*




[web2py] Subdomain based on blog users in routes.py

2011-09-28 Thread Farsheed Ashouri
Hi everyone, I have a blog system and I need a pages like:
mysite.com/myappName/pages/blog?u=user1
map to something like this:
user1.mysite.com

I've read many posts here, the book and other resources i idea how this 
regexpr thing works. Could you please show me *exactly* how this example 
works in routes.py? I am searching for a day in forums and I am really tired 
of searching. (i feel like a fool!! :(( )
Really thank you in advanced.


[web2py] Re: Subdomain based on blog users in routes.py

2011-10-01 Thread Farsheed Ashouri
Any Idea? Please.

Re: [web2py] Subdomain based on blog users in routes.py

2011-10-01 Thread Farsheed Ashouri
I think i have no problem with DNS. cause i put a * value in subdomain 
setting of DNS and now i have access to any sub-domain i want.
So you say there is no way to solve this in routes.py?


[web2py] Re: Subdomain based on blog users in routes.py

2011-10-02 Thread Farsheed Ashouri
So, Any reliable setting? Any alternative ways? probably 
with Apache settings?

[web2py] Re: Subdomain based on blog users in routes.py

2011-10-03 Thread Farsheed Ashouri
Yes Anthony, I've read it 50 times! but i cant figure out this one. your 
code doesn't work. I test it few times on my local and main server. :(
 I am giving up!


[web2py] Re: Web2py Lulu docs - Buy now or wait for the next release?

2011-10-05 Thread Farsheed Ashouri
I've bought version 3.0 and it's almost complete. but version 3.1 has many 
new stuff. I recommend you wait to next version.

[web2py] Re: criticism of web2py

2011-10-05 Thread Farsheed Ashouri
i bet they event didn't create a simple site with Web2py. Don't trust them. 
Just for test, use Django for a week and you'll be back to Web2py soon than 
we expected and with headaches!!
Every day, I am creating a new website for my clients. When I was using 
Django, just initial setup took me hours. I am not saying other frameworks 
are not smart. Web2Py is just better.


[web2py] Re: Encryption/Decryption Modules

2011-10-05 Thread Farsheed Ashouri
I am using Mcrypt with subprocess. Encryption is CPU hungry, so I prefer to 
use external program. you don't need to install Mcrypt on your server, just 
compile Mcrypt and put it is somewhere like "application.folder/bin" and 
execute it.



[web2py] Re: Dealing with UTC and converting to local time

2011-10-05 Thread Farsheed Ashouri
Thank you Massimo, You solution is very good. I am using a javascript code 
that detects timezone and other things, but i should change it to your way 
for sure. Although this script does the job for me but it's more 
complicated. 



detect_timezone.js
Description: JavaScript source


[web2py] Re: Subdomain based on blog users in routes.py

2011-10-05 Thread Farsheed Ashouri
ya, It works, but it's not was i expected. for example my own blog *
rodmena.ourway.ir*  now redirects to it's correct 
path, but i wanted to stay at sub domain level while surfing.
my code is simple:

# Blogs subdomain redirection ===
host_parts = request.env.http_host.split('.')
if len(host_parts) == 3:
subdomain   = host_parts[0]
main_domain = '%s.%s' % (host_parts[1], host_parts[2])
red_link= '%s://%s/pages/blog?u=%s' % (request.env.wsgi_url_scheme, 
main_domain, subdomain)
redirect(red_link)
#

Btw, thx all for their answer, but i still need to solve it in routes.


Re: [web2py] Subdomain based on blog users in routes.py

2011-10-05 Thread Farsheed Ashouri
Well it worked!! but with many problems in Ajax loading! Thank you, but any 
improvements??

Re: [web2py] Subdomain based on blog users in routes.py

2011-10-05 Thread Farsheed Ashouri
ya, I am trying to solve it. Let's see what'll come up with this night! :))
Thank you Jonathan!

On Wed, Oct 5, 2011 at 6:38 PM, Jonathan Lundell  wrote:

> On Oct 5, 2011, at 8:03 AM, Farsheed Ashouri wrote:
>
> Well it worked!! but with many problems in Ajax loading! Thank you, but any
> improvements??
>
>
> You might want to look at request.controller (and .function and .extension)
> to detect Ajax requests and do something else with them (depending on what
> the Ajax problems are). Otherwise all your Ajax requests coming from the
> subdomain will be sent to pages/blog, which is probably wrong.
>



-- 
Sincerely,
Farsheed Ashouri,
ourway.ir
Tel: +98 9388801504


[web2py] Re: Installing under Linux

2011-10-05 Thread Farsheed Ashouri
Did you check /scripts/setup-web2py-ubuntu.sh? It might be 
very helpful and will do the job for you automatically!

[web2py] Re: criticism of web2py

2011-10-05 Thread Farsheed Ashouri


> just wonder if your client(s) want CMS, blog, forms...what do you use?
Yes, most of them want, and once you create your standard core, you 
can reuse those controllers and models or views simply in other projects!


[web2py] Re: Form output format

2011-10-05 Thread Farsheed Ashouri
You may need to render it first and edit it again. But why do you want that 
kind of output? If you need to show o hide something, I recommend using 
jQuery.

[web2py] Re: How to start something when page rendering has completed?

2011-10-05 Thread Farsheed Ashouri
Put something like this at the end of your page:



ajax('../response_url', [''], 'jsrun');


create a function that returns data:

def response_url():
return '''
   YOUR DATA OR EVEN JSSCRIPT HERE
   '''




Re: [web2py] Re: Form output format

2011-10-06 Thread Farsheed Ashouri
Chrome development tools is way better than firebug in my experience.

On Thursday, October 6, 2011, miroslavgojic wrote:

> Hi,
>
> I know for firebug and mozilla addons, and I use them.
>
> I try to use CDUR, crud.settings.formstyle = ('divs') and it is work
> after some figuring out how to get that work
>
> I don't see problem to make form in more lines, just put CR (\n) or
> what is notation for new line in python/web2py environment.
>
> But with divs I can finish my needs, in one or more lines is not so
> important.
>
> For what need web2py use next code in form on end of form definition.
>
> 
> 
> 
> 
> 
>
> Thanks for help.
>
> On Oct 5, 11:11 pm, juanduke > wrote:
> > Hi miroslavgojic:
> >
> > To see html and other things like css, javascript I recomend you use
> firebug
> > (a firefox addon) or similar in chrome (getfirebug.com)
> > Other firefox addon (only useful to see html only) is: view source chart.
> > Both firebug and view source chart can be found in addons.mozilla.com
> >
> > To change the table of the form (generated) please see this (from the
> > book:[SQLForm Chapter]
> http://www.web2py.com/book/default/chapter/07?search=form+style):
> > formstyle determines the style to be used when serializing the form in
> html.
> > It can be "table3cols" (default), "table2cols" (one row for label and
> > comment, and one row for input), "ul" (makes an unordered list of input
> > fields), "divs" (represents the form using css friendly divs, for
> arbitrary
> > customization). formstyle can also be a function that takes (record_id,
> > field_label, field_widget, field_comment) as attributes and returns a
> TR()
> > object.
> >
> > HTH
> >
> > Bye



-- 
Sincerely,
Farsheed Ashouri,
ourway.ir
Tel: +98 9388801504


Re: [web2py] Re: criticism of web2py

2011-10-14 Thread Farsheed Ashouri
And probably we should consider porting web2py to python 3.

On Saturday, October 15, 2011, Massimo Di Pierro wrote:

> I will.
>
> On Oct 14, 5:50 pm, Bruno Rocha >
> wrote:
> > > - group plugins in one place
> > > - deprecate web2py.com/applications and consolidate the good ones
> >
> > Take github as an option for doing that!



-- 
Sincerely,
Farsheed Ashouri,
ourway.ir
Tel: +98 9388801504


Re: [web2py] Re: criticism of web2py

2011-10-15 Thread Farsheed Ashouri
About the cms, I am actually working on a general, full featured CMS for my
own company. just out of curiosity, anyone attracted to my blog
system<http://rodmena.ourway.ir>?
If community like it, I'd open it's source and start develop it as a
standard CMS for web2py. And if not, What is a standard cms definition? I am
so eager to develop a standard cms system for web2py but i really hate
systems like Plone. they are so complicated and heavy. I like simplicity in
design and accuracy in software engineering and demand scalability (SaaS).
It might be so good if we could divide responsibilities to develop
that roadmap and carry out the side development cycle like the way Debian
community does it.


On Sat, Oct 15, 2011 at 10:40 AM, Gour  wrote:

> On Fri, 14 Oct 2011 15:30:58 -0700 (PDT)
> Massimo Di Pierro
>  wrote:
>
> > The community should write such road map and work to achieve it.
>
> Anyone senior inspired to work on that?
>
> > - finish the web2py recipes book
>
> Is this going to be printed as well?
>
>
> Sincerely,
> Gour
>
>
> --
> “In the material world, conceptions of good and bad are
> all mental speculations…” (Sri Caitanya Mahaprabhu)
>
> http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
>
>
>


-- 
Sincerely,
Farsheed Ashouri,
ourway.ir
Tel: +98 9388801504


[web2py] Is it possible to compress the output html before rendering out?

2011-10-21 Thread Farsheed Ashouri
Is it possible to compress the output html before rendering out? I mean
using tools like compressors or tiddy to clean/compress the output code
automatically on output not on our source. 



Re: [web2py] Re: Mixing/supporting CMS with Web2py

2011-11-17 Thread Farsheed Ashouri
Ourway.ir is a social network based on web2py. It's also has a blog system 
witch a kind of CMS. I am going to open source it soon.



[web2py] Introducing Web2py Powered Pastebin

2011-11-26 Thread Farsheed Ashouri
Hi everyone, I want to introduce you my Web2py based Pastebin.
Ourway Pastebin 
Here are some screenshots:











The system has many features. Please try it. 

Ourway Pastebin 

Thanks in advanced,

Farsheed.









Re: [web2py] Re: Is it me or what?

2012-01-21 Thread Farsheed Ashouri
you had another option! to mail me and ask me to solve your problem instead 
of marking Ourway emails as spam! Ourway NEVER spams! just when you have 
new comment or private message.  btw, I disabled your account cause all 
passwords are encrypted in database and recover option won't be ready till 
next month. You can re register if you want.
As you know Ourtway is in it's beta and there is long way to be a 
production ready and public tool. The only thing I need is to get people 
test it as much as they can so i can find bugs and fix them.
Thanks for your support and using my tool.