Displaying 2 results from an estimated 2 matches for "tagstr".
Did you mean:
macstr
2001 Feb 12
0
log-server.c patch: adding tag to every log output.
...r.c 2001/01/15 09:07:44 1.1
--- log-server.c 2001/01/25 05:56:57
***************
*** 122,127 ****
--- 122,140 ----
#define MSGBUFSIZ 1024
+ /* CI: verbose tag to show the difference between the internal
+ priority level and the syslog priority.
+
+ */
+ #if 0
+ #define TAGSTR(orig,pri) orig
+ #else
+ /* Verbose:
+ * ssh_internal_name(priority)
+ */
+ #define TAGSTR(orig,pri) orig "(" pri ")"
+ #endif
+
void
do_log(LogLevel level, const cAr *fmt, va_list args)
{
***************
*** 133,169 ****
if (level > log_level)...
2006 Jan 05
0
Problem implementing tagging
I have a Post model, which is linked to the Tag model via a
has_and_belongs_to_many relationship and a join table. Post also has handy
tagstring and tagstring= methods that allow you to define tags by
space-delimited strings.
The problem is this. Whether I assign a list of tags with the tagstring=
method or use p.tags << to form the list of tags, if (on a newly-created
post) I try to assign a tag that already exists in the tags t...