FYI

2012-05-07 Thread Ahmad
A list of open source software is available at http://www.osslinks.com -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to d

Re: Feedback on ticket 7777

2009-12-09 Thread Farhan Ahmad
The existing patch and tests are coded to behave like this so those should be good. I added our discussion to the ticket for historical purposes. I don't have to do anything more from here on so I will wait for the final decision. Thanks, Farhan On Wed, Dec 9, 2009 at 4:41 AM, Russell Keith-Mag

Cutting applications vertically, like multiple weblogs software

2006-06-30 Thread Ahmad Alhashemi
Hello, Immagine that I created a weblog application. Then I decide to make it accomodate multiple weblogs, by adding a weblog model and weblog_id to all records in the application. Is there an easy way to achieve this without having to change all the model code in the application? I mean so that

Re: Cutting applications vertically, like multiple weblogs software

2006-07-01 Thread Ahmad Alhashemi
Hi Malcolm, Thank you for your reply. Sorry that my first email wasn't clear. I wasn't asking on how to add this feature to an actual application I currently have, I'm asking for pointers because I want to add a new feature to Django's core that will make it easier to add such a feature to any D

Re: Cutting applications vertically, like multiple weblogs software

2006-07-02 Thread Ahmad Alhashemi
Hi Luke, I agree that explicitness is better. But I think implicit filtering here is not that bad for two reasons. The first is, as I said, it is the rule not the exception. The second is that it makes it extremely easy to start your application as a single site application then turn it into a mu

Re: Cutting applications vertically, like multiple weblogs software

2006-07-02 Thread Ahmad Alhashemi
Sorry again everyone. I don't actually have a specific application. Allow me to check all the suggestions, take a better look at Django then I promise I'll come back and summarize my findings. In the mean time, does the need to tie the views with the models also apply to the proposed Row Level Pe

Re: Model inheritance API

2006-07-26 Thread Ahmad Alhashemi
Malcolm Tredinnick wrote: > --- > 1. Abstract Base class > --- > One use-case for subclassing is to use the base class as a place to > store common fields and functionality. It is purely a "factor out the > common stuff" holder and you don't ever intend to u

Re: Model inheritance API

2006-07-26 Thread Ahmad Alhashemi
A few corrections... > 2. I'm not sure weather multiple inheritance will be a feasible > solution in Python (because the code that is going to introspect the > Thing super class and add its fields to our class is model.Model, which > is one of the suer classes). It is actually feasible, I just c

A proposal for URL generation

2006-07-26 Thread Ahmad Alhashemi
This is a well know problem. You can read about it in the background section below. The ticket for this problem have been sitting unresolved for a long time now. I would really like to get some feedback from the developers. If you like this, I will submit a patch with the implemenation. My soluti

Re: Reversed urlresolvers and included urlconfs

2006-07-26 Thread Ahmad Alhashemi
This is a know issue waiting for a solution that will satisfy the developers. I've just posted a proposed solution here in the developers list. You can also check the ticket which was opened nine months ago and is still unresolved: http://code.djangoproject.com/ticket/672 --~--~-~--~

Re: A proposal for URL generation

2006-07-26 Thread Ahmad Alhashemi
Great to hear that Adrian. Nevermind my post then :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe

Re: Default escaping -- again!

2006-07-27 Thread Ahmad Alhashemi
Default escaping couples the Django templates with HTML. I don't think that this is a good idea, even if HTML is, incidentally, the most commonly used language in templates, for the time being. --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Default escaping -- again!

2006-07-28 Thread Ahmad Alhashemi
Simon Willison wrote: > Here's an idea I don't think anyone has brought up yet: what if > escaping was on by default for templates ending in .html and off by > default for templates ending in .txt? This does seem like a practical solution. But I think that it gives more meaning to template file n

Re: Where escaping belongs

2006-08-01 Thread Ahmad Alhashemi
I think that this is prone to error. At least for me, when I see a piece of code like this one, I will definitly think that it needs to be escaped: {{ content }} But if I'm passing something in the view code without escaping, I will have to check the template to make sure it is being handled pro

Re: Where escaping belongs

2006-08-04 Thread Ahmad Alhashemi
> Regarding doing a "security audit", assuming you had some method of > defining the default escaping (if any) it would seem easier and safer > to audit if you were looking for cases where you didn't need to escape > (the more rare case). But this is getting back to the main auto-escape > discussi

Re: the template system's whitespace handling

2006-08-04 Thread Ahmad Alhashemi
In Rails, template tags can have an extra hyphen at the end to denote the fact that they should consume the newline right after the tag. So: {% some_tag %} Would look like this: {% some_tag -%} Isn't it possible to just add this functionality by making the newline that comes right after the ta

Re: modularity of apps

2006-08-04 Thread Ahmad Alhashemi
Malcolm Tredinnick wrote: > I'm not a fan of infinite flexibility as solutions for undefined future > problems, so it's good that you've put in some specific cases you've > encountered. Food for thought here. +1 on that. All these suggestions are going to make Django much fatter. It will make th

Re: translation of content

2006-08-12 Thread Ahmad Alhashemi
Kenneth Gonsalves wrote: > hi, > just a few random thoughts on translation of content. At first i was > leaning towards developing a dependant model for each model which > would hold translations. One thing i have realised is that of all the > field types, only three - CharField, TextField and num

Re: XSS comments from PHP Creator

2006-08-20 Thread Ahmad Alhashemi
This reminds me of the autoescaping arguments. Note that you can do this outside of Django. I think that there is something like this for apache called mod_security. It works regardless of the scripting language/framework you are using. --Ahmad On 8/20/06, Paul Sargent <[EMAIL PROTEC

Re: XSS comments from PHP Creator

2006-08-21 Thread Ahmad Alhashemi
On 8/22/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > On 21/08/2006, at 9:24 PM, [EMAIL PROTECTED] wrote: > > @ Ahmad - mod_security (modsecurity.org) is fantastic, and I highly > > recommend installing it on all apaches, but filtering content at the > > webserver level

Re: slow response when using manage runserver without Internet connection

2006-08-22 Thread Ahmad Alhashemi
ng to access the site? Mine, for example, is usually http://127.0.0.1:8001/ P.S: this questions might be more appropriate in the django-users group. --Ahmad On 8/22/06, DD <[EMAIL PROTECTED]> wrote: > > Hi, > > I am using the Django built-in web server. The server's

Re: Django.contrib applications modifying Django to work properly?

2006-08-22 Thread Ahmad Alhashemi
On 8/22/06, Mart <[EMAIL PROTECTED]> wrote: > > Hi Chris, > > I was just wondering why wasn't there any helper methods to achieve > exactly the same result as you can by editing the Django source (in > your case the django.db), but without editing anything out of your > application's directory. >

Re: Validation Aware Models and django.forms on steroids

2006-08-25 Thread Ahmad Alhashemi
On Aug 24, 2006, at 2:21 PM, Brantley Harris wrote: > > The whole raising a Form thing is just a shocking idea. +1 At first, I really digged this raising a Form, but then I realized that it is just returning a value, but too cleverly... 1. It feels like a goto is happening (execution jumping in

Re: Extend URL resolver support for HTTP Methods / REST support

2006-09-22 Thread Ahmad Alhashemi
..etc. But then again, we are probably getting those as strings from the backends. --Ahmad On 9/22/06, Simon de Haan <[EMAIL PROTECTED]> wrote: > > Hello everyone, > > I've posted a patch in trac which will allow the urlresolver to > select a view depending on the H

Re: Contrib context processor?

2006-10-13 Thread Ahmad Alhashemi
Also, this is the most recent thread about this: http://groups.google.com/group/django-developers/browse_thread/thread/11b9a6f2b18f7daf/02cb8b3974f0a329?lnk=st&q=context+processor+settings&rnum=1#02cb8b3974f0a329 You can probably find much more threads regarding this. --Ahmad On

dating website

2007-04-21 Thread tauqir ahmad
Send free email to dating members http://www.datingseasons.com Find your dream partner online free http://www.datingseasons.com Search and make your online partners http://www.datingseasons.com Find more details about your dream partner http://www.datingseasons.com Search your soulmate http://

Reopen ticket #32088, django.contrib.sessions, get_expiry_date() func problem

2022-01-22 Thread ahmad khalili
* Confusing return value in SessionStore('some_session') .get_expiry_date(), example:* from datetime import datetime from django.contrib.sessions.backends.db import SessionStore my_session = SessionStore() my_session.get_expiry_date() # this return new created sessions expiration time(14 days

Form required field

2019-09-20 Thread Ahmad Sharif
Hi, We can add a new field to formbase class like 'fields' or 'exclude' called 'required'. Any field is in that list, must be completed for submitting and validating. I think it's not so difficult. How do I can do that with contributing in django? It's so good if we can impliment that. -- You re

Can we use a django application class?

2007-05-29 Thread Ahmad Alhashemi
Hello, Right now, django applications are strange creatures. They are python packages with some magic. They have to have a "models" module. Everything else is free form. We have strong conventions like urls.py, maybe admin.py, but they all have to be explicitly called and used in the project. Ho

Re: Can we use a django application class?

2007-05-29 Thread Ahmad Alhashemi
On May 29, 2:55 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > Could you elaborate on what's "magical" about an application? It's > just a Python module, with one convention imposed on where you put > model classes so that Django can auto-discover them; adding a whole > new level of infrastructu

Re: Can we use a django application class?

2007-05-29 Thread Ahmad Alhashemi
On May 29, 3:36 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On the topic of "magic", that's a very polarizing phrase. There's no > one definition of magic in the Python sense, so each person is free to > define it differently. For instance, your proposal seems (in a way) > more magical to me,

Re: Can we use a django application class?

2007-05-29 Thread Ahmad Alhashemi
On May 29, 7:12 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 5/29/07, Ahmad Alhashemi <[EMAIL PROTECTED]> wrote: > > > Why are we reinventing import everywhere in django? Is this really > > common in python, passing strings containing package na

Re: Can we use a django application class?

2007-05-29 Thread Ahmad Alhashemi
On May 29, 7:16 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On 5/29/07, Ahmad Alhashemi <[EMAIL PROTECTED]> wrote: > > > I'm definitely not suggesting a major infrastructure change. I'm just > > suggesting something similar to the passing vie

Re: Can we use a django application class?

2007-05-29 Thread Ahmad Alhashemi
On May 29, 7:24 pm, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > Hey Ahmed -- > > Let's back up a step here: what's the problem you're having with the > way Django currently does INSTALLED_APPS? What can't you do that you'd > like to do? > > Jacob I can't change my application structure witho

Re: Can we use a django application class?

2007-05-29 Thread Ahmad Alhashemi
On May 29, 7:53 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On 5/29/07, Ahmad Alhashemi <[EMAIL PROTECTED]> wrote: > > > Well, it is called INSTALLED_APPS, not MODELS_OF_INSTALLED_APPS, > > right? :) > > > The only reason that the "model

Re: Can we use a django application class?

2007-05-29 Thread Ahmad Alhashemi
On May 29, 9:12 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 5/29/07, Ahmad Alhashemi <[EMAIL PROTECTED]> wrote: > > > I can't extend Django applications with extra features that require > > auto-discovery. I'm working on a CMS using

Re: How to Start for GSOC 2020 in Django org.

2020-01-13 Thread Ahmad A. Hussein
Hi Priyanshu, I'm a fellow GSoC aspirer. What helped me a lot is checking out the contributing guide posted on the Django website. Here is the link: https://docs.djangoproject.com/en/dev/internals/contributing/ It'll make things a lot easier for you if you've never used Git before and never trac

Where to post to ask questions about solving a Django ticket

2020-02-03 Thread Ahmad A. Hussein
I'm currently stuck on solving a Django ticket I assigned to myself, and I don't know where to post to ask for help/feedback. Should I post here or ask someone on the #django IRC channel or should I make a post on the django project forums? -- You received this message because you are subscribe

Re: [Feature Request] Having an middleware to be able to force authentication on views by default

2020-03-23 Thread Ahmad A. Hussein
definitely throw a hand. Regards, Ahmad -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django

GSoC Proposal to extend the parallel test runner to Windows and macOS and to support Oracle parallel test running

2020-03-23 Thread Ahmad A. Hussein
ds to adapting the current parallel test runner to work through spawn. Let me know what you think. Regards, Ahmad -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this

Re: GSoC Proposal to extend the parallel test runner to Windows and macOS and to support Oracle parallel test running

2020-03-27 Thread Ahmad A. Hussein
nd with Shai Berger's ideas to see what works and what's performance-costly. Lastly, testing does seem to be an enigma to think about right now. I've thought about tests for both SQLite's and Oracle's cloning method, but I can't imagine anything else. If you have any

Re: GSoC Proposal to extend the parallel test runner to Windows and macOS and to support Oracle parallel test running

2020-03-30 Thread Ahmad A. Hussein
to see if there are any major differences. There might be a performance difference between them. I'm also checking if there are any unexpected errors that might arise. Regards, Ahmad On Sun, Mar 29, 2020 at 5:56 PM Adam Johnson wrote: > Currently what I'm figuring out is getting a SQL du

Re: GSoC Proposal to extend the parallel test runner to Windows and macOS and to support Oracle parallel test running

2020-03-30 Thread Ahmad A. Hussein
d to consider the time it takes to make the databases in-memory. Re-running migrations and recreating the SQLite database from scratch for every worker might be a time-sink, but it could actually prove quicker than other methods. I'll try it out as well and see. Thank you for your suggestions

Re: GSoC Proposal to extend the parallel test runner to Windows and macOS and to support Oracle parallel test running

2020-03-30 Thread Ahmad A. Hussein
get back to it again later today. It is definitely exciting to find out! Regards, Ahmad On Mon, Mar 30, 2020 at 11:46 AM Tom Forbes wrote: > Awesome! However there is always a tradeoff between speed and code > complexity - it might not be worth a more complex system involving shared > memory

Re: Selected projects for Google Summer of Code 2020

2020-05-06 Thread Ahmad A. Hussein
own progress. Thanks for the suggestion Sage. I'll make a thread on the forums to discuss my current plans/preparations or any issue, and I'll be sure to link to the PR as relevant and discuss specific details there. Looking forward to working with Tom and Adam! Regards, Ahmad On W

Re: Proposal for Table Functions

2020-05-17 Thread Ahmad A. Hussein
est for example that can have a harder problem running pytest on Django due to how the test runner is currently built (namely that setup assumes a subclass of the Django test runner). Regards, Ahmad On Sun, May 17, 2020 at 4:36 PM Petr Přikryl wrote: > Hi, I have just implemented Table Function

Re: Proposal for Table Functions

2020-05-18 Thread Ahmad A. Hussein
his view takes long time for my app. So I found out that I can > optimize that using table function instead view with parameter limiting the > recursion depth. But I couldn't switch view to table function because no > ORM support. With this gist I could. > > ad tests. I used the

Re: The blacklist / master issue

2020-06-19 Thread Ahmad A. Hussein
I'd argue that since Django is an international framework, we should strive to set an international standard. If a certain word is off-putting or problematic to individuals in our community, and if it does not convey an accurate and least astonishing meaning to a non-native English speaker, then we

Re: Welcome email

2020-07-05 Thread Ahmad A. Hussein
+1 on this. Here's the relevant feature <https://support.google.com/a/users/answer/9308780?hl=en> I found. Ahmad On Sun, Jul 5, 2020 at 7:58 PM Adam Johnson wrote: > I can't find a google groups feature that would allow this. Do you know of > one? It might otherwis

Re: Replace the default django test runner to a more robust testing framework (like pytest)

2020-12-15 Thread Ahmad A. Hussein
Hi Diptesh, This is a great idea! (And one that has had a fair bit of discussion). I don't think anyone holds an opinion against supporting pytest as a testing tool, but I believe the main hurdle is laying a convincing argument why this support should be in Django Core versus remaining in its curr

Re: Changing the discovery method for management commands

2020-12-19 Thread Ahmad A. Hussein
What are the remaining use cases here? Is the proposed change absolutely necessary for these use cases? On Sat, Dec 19, 2020 at 6:19 PM Diptesh Choudhuri < diptesh.choudh...@gmail.com> wrote: > Though its just one file and two directories, the use case is common > enough to be used by a lot of

Re: Query regarding Google Summer Of Code

2021-03-16 Thread Ahmad A. Hussein
Hello Muskan, "We're still going to be strict with what we accept - you'll need to provide a *strong use case* for your idea and show that it would be *useful to a majority of developers* or *significantly improve* the development of Django itself." This is from the wiki page