Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(305)

Issue 5574079: Port Rietveld to Py27 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 4 months ago by GvR
Modified:
14 years, 3 months ago
Reviewers:
techtonik, gvrpython
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : fix repo/branch form handling #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -32 lines) Patch
M app.yaml View 2 chunks +6 lines, -1 line 0 comments Download
M appengine_config.py View 1 chunk +2 lines, -3 lines 0 comments Download
M codereview/views.py View 1 6 chunks +49 lines, -25 lines 0 comments Download
M main.py View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 9
techtonik
This seems to duplicate patch from http://codereview.appspot.com/5552045/ Otherwise looks good to me.
14 years, 4 months ago (2012-01-31 08:20:47 UTC) #1
GvR
On 2012/01/31 08:20:47, techtonik wrote: > This seems to duplicate patch from http://codereview.appspot.com/5552045/ > Otherwise ...
14 years, 4 months ago (2012-01-31 18:33:26 UTC) #2
GvR
On 2012/01/31 18:33:26, GvR wrote: > On 2012/01/31 08:20:47, techtonik wrote: > > This seems ...
14 years, 4 months ago (2012-02-01 03:46:34 UTC) #3
techtonik
On 2012/01/31 18:33:26, GvR wrote: > On 2012/01/31 08:20:47, techtonik wrote: > > This seems ...
14 years, 3 months ago (2012-02-16 12:53:57 UTC) #4
gvrpython
On Thu, Feb 16, 2012 at 4:53 AM, <techtonik@gmail.com> wrote: > Is the memcache shared ...
14 years, 3 months ago (2012-02-16 17:50:53 UTC) #5
techtonik
On Thu, Feb 16, 2012 at 8:50 PM, Guido van Rossum <guido@python.org> wrote: > On ...
14 years, 3 months ago (2012-02-17 06:50:09 UTC) #6
gvrpython
On Thu, Feb 16, 2012 at 10:49 PM, anatoly techtonik <techtonik@gmail.com> wrote: > On Thu, ...
14 years, 3 months ago (2012-02-18 03:10:19 UTC) #7
techtonik
On Sat, Feb 18, 2012 at 6:09 AM, Guido van Rossum <guido@python.org> wrote: > On ...
14 years, 3 months ago (2012-02-18 04:18:00 UTC) #8
gvrpython
14 years, 3 months ago (2012-02-18 04:25:03 UTC) #9
On Fri, Feb 17, 2012 at 8:17 PM, anatoly techtonik <techtonik@gmail.com> wrote:
> On Sat, Feb 18, 2012 at 6:09 AM, Guido van Rossum <guido@python.org> wrote:
>>
>> On Thu, Feb 16, 2012 at 10:49 PM, anatoly techtonik <techtonik@gmail.com>
>> wrote:
>> > On Thu, Feb 16, 2012 at 8:50 PM, Guido van Rossum <guido@python.org>
>> > wrote:
>> >> > How do you access the stats to compare?
>> >> > I can't see the interface for that on https://appengine.google.com/
>> >>
>> >> Not sure I understand the question. With the above change in place
>> >> (which you are free to do!) you should be able to go to /_ah/stats on
>> >> each version of the app, e.g. 91.codereview.appspot.com/_ah/stats to
>> >> access stats for version 91.
>> >
>> >
>> > The question was - how _ah/stats knows which prefix to use for showing
>> > statistics? In main.py we import appengine_config.py explicitly, so
>> > _ah/stats handler should implicitly import this file to grab its
>> > settings,
>> > and if the file is imported implicitly anyway - what's the point in
>> > doing
>> > this in main.py?
>>
>> I don't recall why main imports it, but it's probably related to
>> Django, not to Appstats. I still don't know what you mean by prefix --
>> are you perhaps referring to the function appstats_normalize_path()
>> defined in appengine_config.py? That is used by the Appstats UI only.
>
>
> My mistake. Not "prefix", but "namespace" or "appstats key". Appstats UI has
> a different entrypoint, not main.py, so I wondered how it knows proper
> namespace. It doesn't import appengine_config.py, so that should be done
> implicitly somewhere, perhaps in run_bare_wsgi_app().

Actually appstats does -- via a complicated mechanism -- end up
reading the info from appengine_config.py. Follow the trail from
recording.py to lib_config. All this is documented (if sparsely):
http://code.google.com/appengine/docs/python/tools/appstats.html#OptionalConf...

-- 
--Guido van Rossum (python.org/~guido)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b