Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
description_from_content
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
step  
View profile  
 More options Mar 7 2012, 9:30 am
From: step <ste...@gmail.com>
Date: Wed, 7 Mar 2012 06:30:34 -0800 (PST)
Local: Wed, Mar 7 2012 9:30 am
Subject: description_from_content

1. Any objections to moving description_from_content() to the MetaData
model?
2. Adding a management command that runs description_from_content() for all
models using MetaData so description_from_content is optionally tied to
save...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen McDonald  
View profile  
 More options Mar 7 2012, 2:50 pm
From: Stephen McDonald <st...@jupo.org>
Date: Thu, 8 Mar 2012 06:50:19 +1100
Local: Wed, Mar 7 2012 2:50 pm
Subject: Re: [mezzanine-users] description_from_content

Makes sense since description is part of Meta.

But description_from_content relies on drawing the content from somewhere,
falling back to the title, which is defined in Slugged.

So perhaps title belongs on Meta, which makes sense to me, and Slugged then
subclasses Meta, then displayable need only subclass Slugged rather than
both.

How does this sound?

Management command sounds good too.

On Thu, Mar 8, 2012 at 1:30 AM, step <ste...@gmail.com> wrote:
> 1. Any objections to moving description_from_content() to the MetaData
> model?
> 2. Adding a management command that runs description_from_content() for
> all models using MetaData so description_from_content is optionally tied to
> save...

--
Stephen McDonald
http://jupo.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
step  
View profile  
 More options Mar 7 2012, 5:14 pm
From: step <ste...@gmail.com>
Date: Wed, 7 Mar 2012 14:14:36 -0800 (PST)
Local: Wed, Mar 7 2012 5:14 pm
Subject: Re: [mezzanine-users] description_from_content

Makes sense....  can't have Meta without Slugged anyway... I mean you
could... but I can't think of any reason why...

On another note...  if i remember correctly (have to look at it again)...
currently every time the object is saved ... description is gleaned from
existing content...  could this be toggled by a boolean in settings?  I
could see this causing issues especially when using custom descriptions...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen McDonald  
View profile  
 More options Mar 7 2012, 5:51 pm
From: Stephen McDonald <st...@jupo.org>
Date: Thu, 8 Mar 2012 09:51:55 +1100
Local: Wed, Mar 7 2012 5:51 pm
Subject: Re: [mezzanine-users] description_from_content

No you're right it happens every time. I think it was originally only when
the description didn't have a value. It's a fine line, sometimes you'll
want it to automatically update, and when you add your own custom
description, you obviously won't. I wonder if there's a way of detecting a
custom description without needing a bool to toggle.

--
Stephen McDonald
http://jupo.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen McDonald  
View profile  
 More options Mar 9 2012, 10:23 am
From: Stephen McDonald <st...@jupo.org>
Date: Sat, 10 Mar 2012 02:23:35 +1100
Local: Fri, Mar 9 2012 10:23 am
Subject: Re: [mezzanine-users] description_from_content

Done here:
https://github.com/stephenmcd/mezzanine/commit/52a2257f29d103efa1890a...

Didn't quite work out the way I proposed. Slugged can't subclass MetaData
since Keyword subclasses Slugged, and MetaData contains Keywords - it might
be doable but it'd be pretty messy I think.

Anyway the above commit achieves the desired effect -
description_from_content is now on MetaData along with a few other small
tweaks.

Didn't look at the management command or controlling when the description
gets set.

--
Stephen McDonald
http://jupo.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
step  
View profile  
 More options Mar 14 2012, 10:57 am
From: step <ste...@gmail.com>
Date: Wed, 14 Mar 2012 07:57:23 -0700 (PDT)
Local: Wed, Mar 14 2012 10:57 am
Subject: Re: [mezzanine-users] description_from_content

Hmm,  I'm not sure how you could see if there's been custom input...  what
would happen if they wanted to use automatic descriptions again... maybe
it's one way or the other... There could a use_auto_description checkbox in
Metadata, default to True...  might be ugly, but follows the UI for in_nav
in Page...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen McDonald  
View profile  
 More options Mar 14 2012, 6:11 pm
From: Stephen McDonald <st...@jupo.org>
Date: Thu, 15 Mar 2012 09:11:00 +1100
Subject: Re: [mezzanine-users] description_from_content

Yeah I think the checkbox is actually right, explicit vs implicit etc.

--
Stephen McDonald
http://jupo.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Josh Cartmell  
View profile  
 More options Mar 14 2012, 11:17 pm
From: Josh Cartmell <joshcar...@gmail.com>
Date: Wed, 14 Mar 2012 20:17:47 -0700
Local: Wed, Mar 14 2012 11:17 pm
Subject: Re: [mezzanine-users] description_from_content

I think it's worth noting here that search results are displayed using a
truncated description so if the description was not set to auto-update you
could end up with results with stale descriptions.  I know it used to be
the case that descriptions did not auto update and this was an issue I ran
into then.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen McDonald  
View profile  
 More options Mar 24 2012, 10:30 pm
From: Stephen McDonald <st...@jupo.org>
Date: Sun, 25 Mar 2012 13:30:50 +1100
Local: Sat, Mar 24 2012 10:30 pm
Subject: Re: [mezzanine-users] description_from_content

I've added the "Generate Description" checkbox:

https://github.com/stephenmcd/mezzanine/commit/47d54625a6f689332a7034...

--
Stephen McDonald
http://jupo.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »