Exactly that. Here's what I put together:
class Catalogue(models.Model):
... everything above ...
# Added field to store reference to at-job number
at_job_number = models.IntegerField(editable=False)
def save(self, **kwargs):
self.create_at_job()# new method
On Mon, Oct 27, 2008 at 5:52 PM, redmonkey <[EMAIL PROTECTED]>wrote:
>
> h. Yeah, That's pretty simple.
>
> I could even get a reference to the Job number using -v with at,
> storing that in the DB and then removing and recreating another at-job
> if the user changes the time.
>
Do you mean s
redmonkey wrote:
> h. Yeah, That's pretty simple.
>
> I could even get a reference to the Job number using -v with at,
> storing that in the DB and then removing and recreating another at-job
> if the user changes the time.
>
> Brilliant, thank you.
>
> On Oct 27, 4:05 pm, Steve Holden <[EMAIL
h. Yeah, That's pretty simple.
I could even get a reference to the Job number using -v with at,
storing that in the DB and then removing and recreating another at-job
if the user changes the time.
Brilliant, thank you.
On Oct 27, 4:05 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> redmonkey
redmonkey wrote:
> Thanks Matías, you've come up with a good solution, but unfortunately
> this won't really work for my situation.
>
> For my client, online bidding ends immediately before they open
> bidding on the shop floor. The catalogue for that sale must go offline
> at that point. I can't
Thanks Matías, you've come up with a good solution, but unfortunately
this won't really work for my situation.
For my client, online bidding ends immediately before they open
bidding on the shop floor. The catalogue for that sale must go offline
at that point. I can't expect my client to postpone
BTW this is the save method for the model with the rounding function:
def save(self):
def roundminute(d, r):
"""Rounds the datetime d to the nearer r multiple
If r == 15 =>
3:00 -> 3:00
3:05 -> 3:00
3:27 -> 3:30
3
I have the exact problem. I round end and start dates to 15 minutes. I mean,
user enters 12:10, I write 12:15. So each 15 minutes cron runs a script with
django-commands-extensions runscript. Is a balance between accuracy and
load.
The perfect should be finding the next success to happen (easy) an
Hi,
On 27.10.2008 12:45 Uhr, redmonkey wrote:
> Pretty simple stuff. My problem is that I need to run a function at
> the auction_date of the catalogue that will do a few things like
> change the status of the catalogue, and send an email out to some
> admins.
>
> I've done some brief research, a
Hi,
I'm working on a simple auctioneer's website. My Catalogue app
consists of a list of Lots arranged into Catalogues. Each catalogue
has an auction_data field which stores a status and a date and time of
the sale:
class Catalogue(models.Model):
DRAFT_STATUS = 1
LIVE_STATUS = 2
CATA
10 matches
Mail list logo