might as well leave clone.py in trunk - there are legitimate uses for it and it can't be hidden now anyway: http://code.google.com/p/web2py/source/browse/scripts/clone.py?r=19d163c0406a1787da4077a2b2aa8074c725ad87
On Aug 1, 10:14 am, Joe Barnhart <joe.barnh...@gmail.com> wrote: > No, he is NOT right. > > I need tools EXACTLY like clone.py. Right now I'm working on a web2py > version of a site I OWN. I want to make the look and feel as close as > possible to the old existing site so my users won't notice the > change. (Except the change from going from a pile of PHP to a real > database-driven site.) > > Can clone.py be used for nefarious purposes? Sure. Does that make > the TOOL evil? NO NO NO!!! That is like saying that "bittorrent is > evil" because a lot of filesharing is illegal. A hell of a lot of > filesharing is VERY legal and we use bt protocol every day for non- > infringing uses. > > -- Joe B. > > On Jul 24, 5:30 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > You are absolutely right. I removed it. > > > Massimo > > > On Jul 24, 7:22 pm, Pepe <pepea...@gmail.com> wrote: > > > > This makes easier to steal the work of others ... what a great tool? > > > no? > > > > i didn't agree, > > > what's the point? > > > > "hey I learnt to make a super great weapon to kill all the people at > > > world" Should I build it? > > > hummm, but wait, under certain conditions it is illegal to kill > > > people. please use it only when is allowed. > > > > :) > > > > On Jul 24, 9:27 am, Phyo Arkar <phyo.arkarl...@gmail.com> wrote: > > > > > Intranet Is ok. And if you remove all the graphics , replace with your > > > > own > > > > stuff , should be fine. > > > > > On Sat, Jul 24, 2010 at 7:44 PM, Scott <blueseas...@gmail.com> wrote: > > > > > Personally, I think this is a great idea particularly when designing > > > > > Intranet sites. This makes it very easy to implement your company's > > > > > look and feel without having to go through a lot of hoops. I say put > > > > > in a warning or caveat that must be accepted when using the script to > > > > > absolve web2py of liability, and let people use it. > > > > > > On Jul 23, 3:41 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > > Let's say you have a web2py application "myapp" and you want it to > > > > > > look like a existing web site, for example "http://www.reddit.com", > > > > > > here is what you do from the web2py/ folder: > > > > > > > ./scripts/clone.py -m '.tabmenu' -c '.content' -u > > > > > > 'http://www.reddit.com'-o > > > > > applications/myapp/views/layout.html > > > > > > > Done! > > > > > > > In the script above: > > > > > > -m '.tabmenu' is the class of the UL menu (. for class and # for id, > > > > > > jQuery notation) > > > > > > -c '.content' is the class of DIV that contains the main page > > > > > > content. > > > > > > -u is the url of the page you want to clone and > > > > > > -o is the file you want to generate (a web2py layout). > > > > > > > You will need to look at the page first (possibly with firebug) to > > > > > > figure out the -m and -c values for the specific page you intend to > > > > > > clone. > > > > > > > The script converts the page into a web2py layout by inserting > > > > > > web2py > > > > > > tags in the proper places. It does not download linked static files > > > > > > but fixes links so that they do not break. > > > > > > > It does not work on non-utf8 pages. > > > > > > > I am not sure this is going to stay but I could use feedback on > > > > > > whether this is useful or not. If somebody could help fix it for non > > > > > > utf8 pages it would be great. > > > > > > > The script is in trunk now. If you do not use trunk, just get this > > > > > > file > > > > > > > http://web2py.googlecode.com/hg/scripts/clone.py > > > > > > > and store it in web2py/scripts. > > > > > > > DISCLAIMER: Under certain conditions it is illegal to make a page > > > > > > look > > > > > > too similar to an existing page because it may be considered > > > > > > phishing. > > > > > > The code provided can help you for a quick demo but it should not be > > > > > > used to generate production web sites unless the layout of the site > > > > > > you are cloning explicitly allows it. > > > > > > > Massimo