[25809] users/jberry/mpwa

source_changes at macosforge.org source_changes at macosforge.org
Sat Jun 2 14:15:23 PDT 2007


Revision: 25809
          http://trac.macosforge.org/projects/macports/changeset/25809
Author:   jberry at macports.org
Date:     2007-06-02 14:15:23 -0700 (Sat, 02 Jun 2007)

Log Message:
-----------
mpwa: clean up todo list.

 * Add port name, long and short description, and home page fields to per port_pkg table. This implies duplication with the port table, but gives us a way to track changes to these fields over time.

Modified Paths:
--------------
    users/jberry/mpwa/app/models/port_pkg.rb
    users/jberry/mpwa/app/views/port_pkg/show.rhtml
    users/jberry/mpwa/doc/TODO.txt

Modified: users/jberry/mpwa/app/models/port_pkg.rb
===================================================================
--- users/jberry/mpwa/app/models/port_pkg.rb	2007-06-02 21:03:00 UTC (rev 25808)
+++ users/jberry/mpwa/app/models/port_pkg.rb	2007-06-02 21:15:23 UTC (rev 25809)
@@ -97,7 +97,12 @@
         self.submitted_at = Time.now
         self.submitter = Person.ensure_person_with_email(meta.submitter_email, meta.submitter_name)
         self.submitter_notes = meta.submitter_notes
-       
+        
+        self.name = name
+        self.short_desc = meta.short_desc
+        self.long_desc = meta.long_desc
+        self.home_page = meta.home_page
+        
         self.epoch = meta.epoch
         self.version = meta.version
         self.revision = meta.revision

Modified: users/jberry/mpwa/app/views/port_pkg/show.rhtml
===================================================================
--- users/jberry/mpwa/app/views/port_pkg/show.rhtml	2007-06-02 21:03:00 UTC (rev 25808)
+++ users/jberry/mpwa/app/views/port_pkg/show.rhtml	2007-06-02 21:15:23 UTC (rev 25809)
@@ -8,6 +8,13 @@
                 :id => @port_pkg.port %>
 </p>
 
+<p class='short_desc'><%=h @port_pkg.short_desc if @port_pkg.short_desc %></p>
+<% if @port_pkg.long_desc && @port_pkg.long_desc != @port_pkg.short_desc %>
+    <div class='long_desc'><%= simple_format(@port_pkg.long_desc) %></div>
+<% end %>
+
+<p><strong>Home Page:</strong> <%= auto_link @port_pkg.home_page %></p>
+
 <p>
 	<strong>Version:</strong>
     <%=h "(#{@port_pkg.epoch})" if @port_pkg.epoch.to_i != 0 %>

Modified: users/jberry/mpwa/doc/TODO.txt
===================================================================
--- users/jberry/mpwa/doc/TODO.txt	2007-06-02 21:03:00 UTC (rev 25808)
+++ users/jberry/mpwa/doc/TODO.txt	2007-06-02 21:15:23 UTC (rev 25809)
@@ -9,18 +9,6 @@
     
 Needed Schema Changes:
 
-  - Make file storage independent of portpkg, so that it might be used for
-    other things like, say, user pictures.
-  - Using a join table for files would also allow us to share file storage
-    for the case where two files are exactly the same--relatively common,
-    probably, within versions of non-portfile files.
-  - Add long and short desc and maintainer fields (and whatever else is missing)
-    to port pkg. Even though these are duplicated by entries in port, the
-    time period is different. Keeping a full record of this information will
-    make it easier to switch to showing a different version of this meta 
-    information.
-  - Add space for user pubkey? Or is it already there?
-	
 UI Design Thoughts:
 
 	- Global Page header:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070602/041b4309/attachment.html


More information about the macports-changes mailing list