RE: [pygame] pygweb milestone 1 released

2009-06-01 Thread Noah Kantrowitz
> -Original Message-
> From: owner-pygame-us...@seul.org [mailto:owner-pygame-us...@seul.org]
> On Behalf Of jug
> Sent: Monday, June 01, 2009 3:12 PM
> To: pygame-users@seul.org
> Subject: Re: [pygame] pygweb milestone 1 released
> 
> Noah Kantrowitz wrote:
> > Look at http://trac.edgewall.org/wiki/TracInterfaceCustomization for
> > information on basic customization. If you end up needing more than
> that I
> > can explain how to write a full theme replacement.
> >
> I thought you wanted to do that because you already know how it works.
> After reading the docs, some /trial and error we may manage that, but
> we have enough to do before.
> /

If you (or someone feeling artistic) can take the HTML for a Trac page, say
the wiki, and make it look the way you want, I can make Trac do that.

> > As for plugins, check out trac-hacks.org.
> Sure, I already had a look at it and bookmarked some plugins that may
> be
> useful for us.
> > Making a Django filter for Trac markup probably wouldn't be too too
> hard.
> > Are you running both in the same interpreter?
> The same interpreter? On the testing installation both run over (their
> own) cgi.
> I think we can use formatter.format_to_html
> (http://trac.edgewall.org/browser/tags/trac-
> 0.11.4/trac/wiki/formatter.py#L1109)
> but I don't know what the arguments are (context, wikidom).

You would need to do a few things:

1) Open the Trac environment: env =
trac.env.open_environment('/path/to/trac/env', use_cache=True)

2) Make a fake request:
http://trac.edgewall.org/browser/tags/trac-0.11.4/trac/wiki/tests/formatter.
py#L112
 Href is in trac.web.api, Mock and MockPerm are in trac.test

3) Make a context with the fake req:
http://trac.edgewall.org/browser/tags/trac-0.11.4/trac/wiki/tests/formatter.
py#L118

A context is a tuple of (realm, id, version, parent). You can ignore the
version and parent for this, but you will want to invent a new realm
probably, so context = Context.from_request(req, 'pygweb',
pagename_from_django_or_something)

4) Run the render: format_to_html(env, content, content_from_django)

You can adjust the details of that as you want to, but it should get you
most of the way. Depending on how you want to handle permissions, you may
not want to use MockPerm, but actually load user permissions from Trac:
trac.perm.PermissionCache(env, username)

--Noah



Re: [pygame] pygweb milestone 1 released

2009-06-01 Thread jug

Noah Kantrowitz wrote:

Look at http://trac.edgewall.org/wiki/TracInterfaceCustomization for
information on basic customization. If you end up needing more than that I
can explain how to write a full theme replacement.
  

I thought you wanted to do that because you already know how it works.
After reading the docs, some /trial and error we may manage that, but
we have enough to do before.
/

As for plugins, check out trac-hacks.org.

Sure, I already had a look at it and bookmarked some plugins that may be
useful for us.

Making a Django filter for Trac markup probably wouldn't be too too hard.
Are you running both in the same interpreter?
The same interpreter? On the testing installation both run over (their 
own) cgi.
I think we can use formatter.format_to_html 
(http://trac.edgewall.org/browser/tags/trac-0.11.4/trac/wiki/formatter.py#L1109)

but I don't know what the arguments are (context, wikidom).


Julian


RE: [pygame] pygweb milestone 1 released

2009-06-01 Thread Noah Kantrowitz
> -Original Message-
> From: owner-pygame-us...@seul.org [mailto:owner-pygame-us...@seul.org]
> On Behalf Of jug
> Sent: Monday, June 01, 2009 1:28 PM
> To: pygame-users@seul.org
> Subject: Re: [pygame] pygweb milestone 1 released
> 
> Hi Noah,
> 
> Noah Kantrowitz wrote:
> > I would say I fit that bill. Let me know if there is something you
> need
> > poked with a stick.
> We need a custom template and style to fit Trac into the rest of the
> page.
> Then we have to care about configuration, plugins, etc.

Look at http://trac.edgewall.org/wiki/TracInterfaceCustomization for
information on basic customization. If you end up needing more than that I
can explain how to write a full theme replacement.

As for plugins, check out trac-hacks.org.

> Do you know if it is possible to use Trac WikiFormatting outside Trac?
> It would
> be cool to have that also on the Django site so we had one markup on
> the
> whole
> site with all the Trac specific markup like wiki and ticket links.

Making a Django filter for Trac markup probably wouldn't be too too hard.
Are you running both in the same interpreter?

--Noah



Re: [pygame] pygweb milestone 1 released

2009-06-01 Thread jug

Hi Noah,

Noah Kantrowitz wrote:

I would say I fit that bill. Let me know if there is something you need
poked with a stick.

We need a custom template and style to fit Trac into the rest of the page.
Then we have to care about configuration, plugins, etc.

Do you know if it is possible to use Trac WikiFormatting outside Trac? 
It would
be cool to have that also on the Django site so we had one markup on the 
whole

site with all the Trac specific markup like wiki and ticket links.


Julian


Re: [pygame] pygweb milestone 1 released

2009-06-01 Thread claudio canepa
On Mon, Jun 1, 2009 at 6:24 AM, Marcus von Appen  wrote:

> pygweb 1.0 (milestone 1) was released.
> Testing
> ---
> You can browse http://pygameweb.no-ip.org/ to visit a current test
> installation of pygweb.
>
> Regards
> Marcus
>

registration is supposed to be functional ? I tried, got an activation email
with the content:

hi,
you registered at pygameweb.no-ip.org
To complete your registration, you have to verify your email address.
Just click the following link within the next 3 days
to finish registration:

pygameweb.no-ip.orgaccounts/activate/c14e95cc7d780dfc3e02c7f6a6ebe472713b2a79/
Regards,
   The pygameweb team

Note that link is not clickable (at least in gmail).
Copy & paste to the adress bar : page not found.
prefixing with http:// or http://www. : page not found
..
works:
http://pygameweb.no-ip.org/accounts/activate/c14e95cc7d780dfc3e02c7f6a6ebe472713b2a79/

In the Edit profile screen: typo passoworld  <->password

In the Edit your profile | description field: tabs are intercepted by the
navigator (IE7 here).

In the Edit your profile | description field: being in plaintext mode,
filled some text. After hitting change, the text layout goes to hell.
Please, dont do that.
Example:
entered in the description field:
begin -->
Ok, this is plaintext.
What about tabs ?
Tabs are intercepted by navigator - IE7 here.
Pasting:
def foo(z):
if x<3 and >1:
print 'happy'
Pasting ok.
<-- end

After save changes:
Ok, this is plaintext. What about tabs ? Tabs are intercepted by navigator -
IE7 here. Pasting: def foo(z): if x<3 and >1: print 'happy' Pasting ok.
Background Color:  the white background is too hard on the eyes.

Will test more later.

--
claxo


RE: [pygame] pygweb milestone 1 released

2009-06-01 Thread Noah Kantrowitz


> -Original Message-
> From: owner-pygame-us...@seul.org [mailto:owner-pygame-us...@seul.org]
> On Behalf Of jug
> Sent: Monday, June 01, 2009 10:31 AM
> To: pygame-users@seul.org
> Subject: Re: [pygame] pygweb milestone 1 released
> 
> Hi Nirav
> > One thing I would suggest is having some kind of navigation from the
> > Trac parts of the site back into the Django parts of the site.  A
> > header bar perhaps, or even integrating the trac part into the rest
> of
> > the site like http://edgewall.org or http://djangoproject.com do.
> >
> Sure. Trac is not yet really integrated. Its just running at /dev/ and
> uses
> same user accounts. We concentrated on main website first, to get the
> projects system running etc. Also, we are more or less inexperienced
> with customizing Trac. So if someone here knows Trac a bit better,
> please answer!

I would say I fit that bill. Let me know if there is something you need
poked with a stick.

--Noah



Re: [pygame] pygweb milestone 1 released

2009-06-01 Thread jug

Hi Nirav

One thing I would suggest is having some kind of navigation from the
Trac parts of the site back into the Django parts of the site.  A
header bar perhaps, or even integrating the trac part into the rest of
the site like http://edgewall.org or http://djangoproject.com do.
  

Sure. Trac is not yet really integrated. Its just running at /dev/ and uses
same user accounts. We concentrated on main website first, to get the
projects system running etc. Also, we are more or less inexperienced
with customizing Trac. So if someone here knows Trac a bit better,
please answer!

The registration confirmation email that gets sent has a broken url.
It is missing the / after the domain.
  

Oh, that's right. I'll fix it with next commit.


Re: [pygame] pygweb milestone 1 released

2009-06-01 Thread Nirav Patel
One thing I would suggest is having some kind of navigation from the
Trac parts of the site back into the Django parts of the site.  A
header bar perhaps, or even integrating the trac part into the rest of
the site like http://edgewall.org or http://djangoproject.com do.

The registration confirmation email that gets sent has a broken url.
It is missing the / after the domain.

Nirav

On Mon, Jun 1, 2009 at 5:24 AM, Marcus von Appen  wrote:
> pygweb 1.0 (milestone 1) was released.
>
> pygweb is an ongoing effort of redesigning and rewriting the pygame.org
> website and to enhance it by new features. It supports user, project and
> release management, a seamless Trac integration with user accounts
> commenting on nearly anything and much more.
>
> Features in 1.0
> ---
> * project management, including releases, user memberships, screenshots,
>  project of the month voting, tags, comments and RSS feeds
> * user management with profile information support and email contact
>  facilities, site-wide user and group rights for nearly anything
> * markup support using reStructuredText or pure HTML
> * flatpage support for static content
> * and other smaller features
> * full Trac integration
>
> Download
> 
> The source packages can be downloaded from:
>
>           http://code.google.com/p/pygame/downloads/list
>
>           http://pygame.googlecode.com/files/pygweb1.0.tar.gz
>           http://pygame.googlecode.com/files/pygweb1.0zip
>
> Testing
> ---
> You can browse http://pygameweb.no-ip.org/ to visit a current test
> installation of pygweb.
>
> Regards
> Marcus
>


Re: [pygame] pygweb milestone 1 released

2009-06-01 Thread Frozenball
Links should more darker -- it's hard to see light green on a white background

On Mon, Jun 1, 2009 at 12:24 PM, Marcus von Appen  wrote:
> pygweb 1.0 (milestone 1) was released.
>
> pygweb is an ongoing effort of redesigning and rewriting the pygame.org
> website and to enhance it by new features. It supports user, project and
> release management, a seamless Trac integration with user accounts
> commenting on nearly anything and much more.
>
> Features in 1.0
> ---
> * project management, including releases, user memberships, screenshots,
>  project of the month voting, tags, comments and RSS feeds
> * user management with profile information support and email contact
>  facilities, site-wide user and group rights for nearly anything
> * markup support using reStructuredText or pure HTML
> * flatpage support for static content
> * and other smaller features
> * full Trac integration
>
> Download
> 
> The source packages can be downloaded from:
>
>           http://code.google.com/p/pygame/downloads/list
>
>           http://pygame.googlecode.com/files/pygweb1.0.tar.gz
>           http://pygame.googlecode.com/files/pygweb1.0zip
>
> Testing
> ---
> You can browse http://pygameweb.no-ip.org/ to visit a current test
> installation of pygweb.
>
> Regards
> Marcus
>