[OH-Dev] Replace controllers with helpers
Rajesh Pradhan
rajeshpradhan at gmail.com
Thu Mar 28 15:48:31 UTC 2013
Hi Asheesh,
Sorry about the wrong naming of the file. I shall fix it in the next
commit. However I am getting the following error when I try the last
command git push origin HEAD:rebased
"error: The requested URL returned error: 403 while accessing
https://github.com/
openhatch/oh-mainline.git/info/refs?service=git-receive-pack
fatal: HTTP request failed"
Rajesh
On Thu, Mar 28, 2013 at 2:32 AM, Asheesh Laroia <asheesh at asheesh.org> wrote:
> On Thu, 28 Mar 2013, Asheesh Laroia wrote:
>
> On Wed, 27 Mar 2013, Rajesh Pradhan wrote:
>>
>> Hi,
>>>
>>> I have replaced controllers with helpers and merged controllers.py with
>>> helpers.py in the base directory of missions. However I had to omit the
>>> call @mysite.base.decorators.**unicodify_strings_when_**inputted before
>>> _geocode and cached_geocoding_in_json due to error!
>>>
>>
>> Hi Rajesh! This sounds like a super great start to reorganizing the code.
>> Thank you for it!
>>
>> I took a look at https://github.com/openhatch/**oh-mainline/pulls<https://github.com/openhatch/oh-mainline/pulls>and couldn't see a corresponding pull request. Did you make one? If not,
>> I'll need more instructions on how to see your changes.
>>
>
>
> Got it -- I think I see it here.
>
> https://github.com/**rajeshpradhan/oh-mainline/**pull/1<https://github.com/rajeshpradhan/oh-mainline/pull/1>
>
> It looks like you should run the following commands within the git
> repository:
>
> git remote add upstream git://github.com/openhatch/oh-**mainline.git<http://github.com/openhatch/oh-mainline.git>
>
> git fetch upstream
>
> git rebase upstream/master
>
> git push origin HEAD:rebased
>
> And then visit https://github.com/**rajeshpradhan/oh-mainline/**
> commit/rebased<https://github.com/rajeshpradhan/oh-mainline/commit/rebased>and you should submit a request that openhatch pull from you.
>
> That's a purely git stylistic concern; I can address that for you if
> needed, although we should get you to the point where you're comfortable
> enough wigit that you can do that too.
>
> The other thing is that you called the file helpers.py not view_helpers.py
> , and in http://lists.openhatch.org/**pipermail/devel/2013-March/**
> 003151.html<http://lists.openhatch.org/pipermail/devel/2013-March/003151.html>I suggested view_helpers.py as the filename.
>
> You can adjust that after-the-fact by doing:
>
> git mv helpers.py view_helpers.py
> git commit -m 'Rename to view_helpers'
>
> (You'll have to do that once per app, e.g. search/project/etc.)
>
> Additionally, you'd have to update the test suite.
>
> Having said that, this change set is very impressive, and makes the code
> hugely easier to follow.
>
> Would you be willing to make the above changes? I can step you through any
> part you need help with, now that I've read your code; just find me on IRC,
> or ask here on the list!
>
>
> -- Asheesh.
> ______________________________**_________________
> Devel mailing list
> Devel at lists.openhatch.org
> http://lists.openhatch.org/**mailman/listinfo/devel<http://lists.openhatch.org/mailman/listinfo/devel>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openhatch.org/pipermail/devel/attachments/20130328/d7fefcd6/attachment.html>
More information about the Devel
mailing list