grok

grok vs. django comparison

What are the smashing (pun intended) features of grok that makes it better than django? how do I know when my project needs grok+zope, or it can just be developed with django ? ...

Double import in grok

This is a normal case of mutual import. Suppose you have the following layout ./test.py ./one ./one/__init__.py ./one/two ./one/two/__init__.py ./one/two/m.py ./one/two/three ./one/two/three/__init__.py ./one/two/three/four ./one/two/three/four/__init__.py ./one/two/three/four/e.py ./one/two/u.py And you have test.py from one.two.t...

Reasons to prefer zope 3 over grok

I am familiar with zope 2 and think that zope 3 is superior in many ways, as far as I've used it (i.e. primarily with Five). Now I'm considering to dive deeper into zope 3. Would you recommend going even one step further and use grok instead, and if so, why? (and if not, why not? :) ...

Per object permissions in a container

In my Grok application I have a container of objects and I'd like to limit the objects that a particular principal can view based on an attribute of the principal and the object. If the principal is an administrator they're able to view any of the objects. I've got this to work by using a Traverser that raises an Unauthorized exception ...

web2py or grok (zope) on a big portal,

Hi, I am planning to make some big project (1 000 000 users, approximately 500 request pre second - in hot time). For performance I'm going to use no relational dbms (each request could cost lot of instructions in relational dbms like mysql) - so i can't use DAL. My question is: how web2py is working with a big traffic, is it work c...

strategies for learning complex software packages

I am a fairly novice Java programmer and I am currently working on a project to extend a piece of software that has been developed over a few years. So it has pretty big code base and the previous developers knew it well, so extending it is not going to be easy without a thorough understanding of the structure and function. 1) I had beg...

Emacs: help me understand file/buffer management

I've been using emacs for all of my text editing needs for the past three years now. When I'm in a single file, working on code or whatnot, I'm fairly efficient. With two files, I can "C-x b RET" between them and I do fine. However, whenever I need to be working on more than two files at a time, I tend to get lost. Here are some of the...

Enable gzip compression in a Grok - Zope - PasteScript environment

Hello everyone! I am trying to make my server send gzipped data. I have a grok application that runs over Paste (Paste-1.7.2-py2.4.egg) I have been trying to google how to make all that environment to serve data in gzip... But without success... I think the answer comes in http://pythonpaste.org/modules/gzipper.html but if I do this: ...

Tables Relationship in Python/Grok (MeGrok)

Hi! How are you doing today? I'm writing because I have a database problem. I am trying to migrate a Grok/Zope application from ZopeDB to MySql, and I don't know exactly how to specify one of the relationships between tables... I am using “megrok.rdb” and “sqlalchemy”. I have four classes involved: A record with some information (l...